Tex Font Cheatsheet
Tex Font Cheatsheet
Tex Font Cheatsheet
LATEX TEX2
Done! PFM/TTF no
6
file found?
a b c d e f g h i j k l m yes
n o p q r s t u v w x y z
A B C DE F GHI J K L M
N O P Q R S T U V WX Y Z
Depending on whether or not your TFM/VF
file contains kerning and ligature tables, the
quality of your document might vary (see
note 4 ). Compare, for example,
Table Table
ffi ffi
— ---
¿ ?‘
Errors and warnings as given by TEX
The following error messages were generated with the TTF font Comic Sans in LATEX. The TEX font name was chosen to be
jcs and T1 encoding was used.
you might run into the same issue. The problem is that LATEX can’t find a definition (in an FD file or in
the source file itself) that links the font family jcs with series m and shape n and the current encoding
to a specific internal TEX font.
That said, the problem is mostly the encoding. Are you using
\ Decla reFont Family { T 1}{ jcs }{}
\ DeclareFontShape { T 1}{ jcs }{ m }{ n } { < - > jcsr 8 t } {}
that is, T1 encoding? Well, LATEX’s default is OT1, so it’s probably just enough to force T1 encoding in
your source file with
\ usepackage [ T 1]{ fontenc }
! Font T1/jcs/m/n/10=jcsr8t at 10.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
Now, somewhere in TEX’s data (in an FD file corresponding to your font or in the source file), one of
TEX’s internal font names is specified, (like jcsr8t here). Unfortunately, TEX can’t find a file named
jcsr8t.tfm now; you can verify this with
$ > kpsewhich jcsr8t . tfm
which doesn’t give any location. This file is needed to use the font. If you are sure that the file is there,
update TEX’s cache (texhash).
3 ! TeX capacity exceeded, sorry [max level recursion of virtual fonts=10].
This error message arises when there is a TFM file and a VF file that points to a raw TFM file that
happens to be the original TFM file itself. From there, TEX finds the corresponding VF file again and so
on: happy looping until TEX is tired.
There probably was an error when creating the font files which resulted in not distinguishing raw TFM
and TFM file. If you created the font files yourself, make sure that these are actually different files.
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi 420 rjcsr8t
mktexpk: don’t know how to create bitmap font for rjcsr8t.
kpathsea: Appending font creation commands to missfont.log.
4
!pdfTeX error: pdflatex (file rjcsr8t): Font rjcsr8t at 420 not found
==> Fatal error occurred, no output PDF file produced!
If you can’t find it, create a proper map file, and update TEX’s map cache:
$ > updmap -- enable Map =/ path / to / mapfile . map
!pdfTeX error: pdflatex (file T1-WGL4.enc): cannot open encoding file for reading
5
==> Fatal error occurred, no output PDF file produced!
Probably easy: LATEX can’t find the encoding file. Can you? In this case, you probably forgot to update
TEX’s cache:
$ > texhash
!pdfTeX error: pdflatex (file Comic-Sans.ttf): cannot open TrueType font file
6 for reading
==> Fatal error occurred, no output PDF file produced!
The actual font file appears to be missing. Again, this might be a matter of updating TEX’s cache; also
make sure that the user can actually access the font file (read: get file permissions right).