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.

  • 1
    I had a similar problem on Mac OS X and asked on Stackoverflow. 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... 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. 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. Jul 21 '12 at 14:43

Browse other questions tagged or ask your own question.