Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}:

\usepackage[urw-garamond]{mathdesign}
\usepackage[T1]{fontenc}

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
add comment

2 Answers

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
1  
@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
1  
@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
show 2 more comments

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
1  
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
add comment

Your Answer

 
discard

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.