I would like to use a family of OpenType fonts with pdfLaTeX (more precisely, Utopia Std from Adobe). I have tried using the Python script otfinst following the clear guideline provided by Harrold Cavendish in How to install OTF fonts with otfinst.py?. I have followed all the steps, but when I run the script, I get the error message Index Error: list index out of range, and no file generation.

I am using MikTeX 2.9 on Windows XP, and the script is in the same folder as the .otf files to be processed. Anyone could possibly help on this issue? I have checked online that this has been happening to some people, but nobody seemed to provide an answer.

closed as not a real question by Joseph Wright Feb 2 '13 at 21:30

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    I had a similar problem on Mac OS X and asked on Stackoverflow. – Christian Lindig Jul 20 '12 at 20:02
  • 2
    Does it have to be otfinst? I gave a short desription of otftotfm in my answer to How do I use TrueType Fonts with PDFTeX using otftotfm?. The question was focused on TTF, but of course, otftotfm works with OTF as well... – Stephan Lehmke Jul 20 '12 at 20:55
  • 1
    I tried the otfinst with a new python and couldn't get it to work at all. I get syntax errors and "inconsistent tab and space" errors. – Ulrike Fischer Jul 21 '12 at 13:17
  • @Ulrike Fischer: I had exactly the same problem trying with Python 2.7. Then that problem seemed to disappear and got that one depicted in my post. Btw, this is related to my post about the fourier package with the expert option. I thought of getting the Type 1 encoding from the .otf files as I had done for MinionPro, but in that case a collection of base files where provided that now I have to obtain directly from the .otf. – Marcos Jul 21 '12 at 13:35
  • @Marcos: otfinst.py mixes tabs and spaces for indentation sometimes even in one line. Also the print commands uses the wrong syntax for python3. Also it assumes e.g. that TEXMFHOME is set (which isn't true on miktex) and probably does other assumtions too. Beside this: if your fourier pfb has the ligature, the simplest would be to write an .enc-file. But one needs the afm to find the glyph names. – Ulrike Fischer Jul 21 '12 at 14:43

Browse other questions tagged or ask your own question.