TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is causing this error?

(see the transcript file for additional information){E:/MikTeX/fonts/enc/dvips/ fontname/texnansi.enc}
!pdfTeX error: miktex-pdftex (file ugmr8a.pfb): cannot open Type 1 font file for reading
==> Fatal error occurred, no output PDF file produced!

I have the following lines after \documentclass[stdletter]{newlfm} and before \begin{document}:


Exchanging their order or omitting the fontenc line doesn't help. I'm new to LaTeX and I cannot decode log files very well yet.

share|improve this question
up vote 8 down vote accepted

You can get the needed fonts from CTAN.

Probably you need only the fonts themselves (the pfb-files). Put them in a local root in fonts/type1/garamond (see the MikTeX manual). Update the fndb and then try again.

share|improve this answer
Thanks, works great! I will soon add as an answer the process that I followed. – Kit Sep 18 '10 at 15:02
@ulrike-fischer: I am on a Fedora system with TeXLive 2011 and getting the same error (!pdfTeX error: pdflatex (file texnansi.enc): cannot open encoding file for reading). I have have garamond installed in my system. All the pfb files from your link are in /usr/share/fonts/ I ran the fc-cache command on this directory. I am still getting the error above. Do you have any suggestions? – Ariel May 3 '12 at 14:45
@Ariel: You are not getting the same error. Above it says "cannot open type 1 font file". You have "cannot open encoding file". Check if you have texnansi.enc. Also fc-cache has nothing to do with this. – Ulrike Fischer May 3 '12 at 14:49
Thanks, where does this texnansi.enc file need to be? – Ariel May 3 '12 at 14:58
@Ariel Look at the original question. You can see the path of the texnansi.enc file in a miktex system. – Ulrike Fischer May 3 '12 at 15:02

I think the problem is described in the package documentation for mathdesign:

This package alone is useless. You have to install one of the full set of fonts available. Please consult the provided README file. It deals with all the installation and system configuration process.

Do you have copies of the fonts required by mathdesign? (I think the script getnonfreefonts can help.) But from here I can't help you—I haven't installed these fonts before myself.

share|improve this answer
I followed the instructions in the INSTALLATION section of the mathdesign README, like updmap, etc., but the problem keeps popping up. I downloaded the zip file linked from here. Does that constitute obtaining a copy of the fonts? I actually have a copy of GARA.TTF that comes with (Windows?) or (Office?). How do I make use of it? – Kit Sep 18 '10 at 14:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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