Electron scattering form factors were measured for the low-lying levels of $^{19}\mathrm{F}$ and $^{40}\mathrm{Ca}$ for momentum transfers between 0.55 and 1.00 ${\mathrm{fm}}^{\ensuremath{-}1}$. Elastic scattering from $^{19}\mathrm{F}$ yields an rms charge radius of 2.885\ifmmode\pm\else\textpm\fi{}0.015 fm. Transition strengths and transition radii are obtained for the lowest ${\frac{5}{2}}^{+}$, ${\frac{5}{2}}^{\ensuremath{-}}$, and ${\frac{3}{2}}^{+}$ states in $^{19}\mathrm{F}$. A deformed rotational model gives a very good fit to the form factors for the positive-parity levels with ground-state deformation parameters of ${\ensuremath{\beta}}_{2}=0.41$ and ${\ensuremath{\beta}}_{4}=0.17$. The form factors for excitation of the ${3}^{\ensuremath{-}}$ and ${2}^{+}$ states in $^{40}\mathrm{Ca}$ are analyzed by phase-shift analysis, and transition strengths and transition radii are also obtained for these levels.