#1127 mkfntmap: PDFTeX TTF installation problem

open
MkFntMap (3)
2012-11-08
2004-07-20
devisualize
No

MikTeX 2.4, PDFTeX 3.141592-1.20a-rc4

Discussion

  • devisualize
    devisualize
    2004-07-20

    Logged In: YES
    user_id=1005523

    Details:

    I'm trying to install a TTF font. The font itself works fine in
    TeX, DVI and PS files are generated OK.

    Generated AFM and map files (ngttf.map, see attached) for
    the font. Generated \localtexmf\pdftex\config\pdftex.cfg
    containing a mapfile entry ("map ngttf.map"). Regenerated
    FNDB. Regenerated all map files. Regenerated FNDB.
    Running "pdftex testfont" shows that only psfonts.map is
    being read, my map file is still being ignored, so it hasn't made
    its way into the format file. pdftex.cfg is being ignored
    altogether. This is probably due to recent changes in PDFTeX.

    The font installation itself is OK. Everything works fine if I just
    do \pdfmapfile{=ngttf.map} in my source file, but this can't
    really be the way PDFTeX is supposed to be configured now,

     
  • devisualize
    devisualize
    2004-07-20

    Map file

     
    Attachments
  • Logged In: YES
    user_id=67066

    Thank you for the report. Please note that

    • pdftex.cfg is still valid

    • but: map file entries in pdftex.cfg are not supported
      (see the manual, for more info about pdftex.cfg entries)

    • you have to use \pdfmapfile directives

    • incorporating \pdfmapfile directives into the LaTeX
      format file isn't currently supported; this will be
      improved later

     
  • holons
    holons
    2004-07-20

    Logged In: YES
    user_id=1087726

    I've exactly the same problem;
    \pdfmapfile{=winfonts.map}-command works, but is not really
    convenient. looking forward to the promised improvement!

     
  • Logged In: YES
    user_id=67066

    Seems that I talked too big :-(

    If I'm not totally wrong, the current pdfTeX design doesn't
    allow precompiled map entries, i.e., it will be impossible
    to create a format file which contains a stack of
    \pdfmapfile (or \pdfmapline) instructions.

     
  • devisualize
    devisualize
    2004-07-20

    Logged In: YES
    user_id=1005523

    In teTeX, there is at least the option of putting all these
    \pdfmapfile{=winfonts.map} map commands into a separate
    command file pdftexconfig.tex, that way you can at least
    keep them out of your files.

     
  • Logged In: YES
    user_id=67066

    IIRC, teTeX's pdftexconfig.tex is only read when you create
    a new format file. It won't help you much because
    \pdfmapfile has no effect while creating the format
    file. Please correct me, if I'm wrong.

     
  • devisualize
    devisualize
    2004-07-22

    Logged In: YES
    user_id=1005523

    hm, but why not dump the \pdfmapfile command (or the
    whole content of pdftexconfig.tex) into the format file itself?
    That's what teTeX does (see e.g.
    http://www.ntg.nl/pipermail/ntg-pdftex/2004-
    March/000394.html)

     
  • Logged In: YES
    user_id=67066

    No, sorry, I'm inconsolable: it's not possible to dump
    \pdfmapfile commands into the format file. I doubt that
    teTeX can do it. PLEASE prove me wrong.

     
  • Logged In: YES
    user_id=67066

    It seems that the \pdfmapfile route is a dead end. Would
    it help to change the behaviour of the map file generator
    (so that TTF fonts are included in the pdfTeX map
    file, but not in the Dvips map file)?

     
  • devisualize
    devisualize
    2004-07-27

    Logged In: YES
    user_id=1005523

    Yes. That would ensure that only software that actually
    understands TTF fonts gets to see them at all.