how to set LaTeX font size in millimeter?

cd1 picture cd1 · May 20, 2009 · Viewed 22.3k times · Source

I need to set the font size in millimeters in my LaTeX document. how can I do that?

thank you!

Answer

kquinn picture kquinn · May 20, 2009

Are you using Type 1 fonts (that is, infinitely scalable fonts)? If not, you'll need to do something like \usepackage{lmodern} (that selects my preferred fonts, the Latin Modern version of Computer Modern). Then just enter a command like

\fontsize{8mm}{9mm}\selectfont

and the following text will be in a font 8 mm high on a 9 mm baseline. If you need to set the size of more than a small amount of text in this way, you will probably have to go into the document class definition -- good luck; I stay as far away from those as I possibly can.