1

This question already has an answer here:

For example, I've written a text, and in the somewhere of there I wanna use different font size, font type, color etc. Or in another way, hown can I change my font temporarily within the text ?

marked as duplicate by Alan Munn, clemens, Claudio Fiandrino, yo', mafp Mar 2 '13 at 16:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

I've edited to correct problem with simple solution. Here's how I generally do it if the quantity of text is small enough to be done inline:

\documentclass[12pt]{article}

\newcommand\finline[3][]{\begin{myfont}[#1]{#2}#3\end{myfont}}%

% ENVIRONMENT FOR NEW FONT
\newenvironment{myfont}[2][]{\csname#2\endcsname[#1]}{}

\newcommand{\Alpine}[1][]{\fontfamily{Alpine}#1\selectfont}

\begin{document}

Original Font \finline[\fontsize{30}{36}]{Alpine}{Text in New Font}
returned to original font
\end{document}

Sorry I can't on this old-old computer turn my PDF into a jpg to show you. Will edit when I can. Obviously Alpine is a font installed on my computer. You will have to pick a font that is on your computer

Not the answer you're looking for? Browse other questions tagged or ask your own question.