It is easy to see that the following code will automatically change the line spacing for the line with {\huge test} but leave the other part of this paragraph untouched.
\documentclass{book}
\usepackage{blindtext}
\begin{document}
\blindtext {\huge test} \blindtext
\end{document}
So, my question is how to realize this functionality manually. I've tried to change the \baselineskip by hand but to my experience it seems that this will change all the line spacing in this paragraph. (Of course, I will have to change it back after the current paragraph to keep the text afterwards untouched.)

\vspace{3cm}if used mid-paragraph will add 3cm of space after just one line. – David Carlisle Apr 25 '22 at 16:02{\huge test}only increases the upper spacing, this\vspace{3cm}method only increases the lower spacing, how can one realize the increase of spacing symmetrically? – Qi Tianluo Apr 25 '22 at 17:48\rule[-1ex]{0pt}{3ex}(play with the values until they fit your liking). – Skillmon Apr 25 '22 at 20:07\baselineskip=\ht\strutbox+\dp\strutboxif you want to maintain proportionality. There is also\vphantom{\huge test}. – John Kormylo Apr 26 '22 at 13:07