Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

ttf2afm - installing true type font

Help
info wanna
2012-06-05
2012-10-17
  • info wanna
    info wanna
    2012-06-05

    Hello All,

    I just spun my wheels for a few days - hopefully someone else doesn't have to.

    I'm using MikTeX version 2.9 - the portable version.

    Installing custom true type fonts appears to be "broken" when using the usual
    font installation procedure (google 'miktex font install truetype' for various
    links).

    It appears that the culprit is ttf2afm. Note the output below.
    (I'm using output from a test that uses a microsoft truetype font - which I
    suppose could be considered a normal enough case of a typical truetype font. I
    know that system fonts can be automatically accessed via other options.)

    The new version of ttf2asm does not write lines to the *.afm file with the
    prefixes "FontName", "FullName" ...

    If you use an automatic installer, you need to revise it for the 'glitch'.
    cheers and ciao.

    p.s. Is this the proper place to post this info? Or should I contact
    pdftex.org? (as of this writing, the version there seems a little out of
    date).

    ====================================================================
    My output:

    run_commands.bat

    H:\MikTeXTest\MikTeX.2.9p\texmf\miktex\bin\ttf2afm.exe -v
    ttf2afm version 1.02
    Copyright (C) 1997-2011 Han The Thanh.
    There is NO warranty. Redistribution of this software is
    covered by the terms of both the pdfTeX copyright and
    the GNU General Public License.
    For more information about these matters, see the files
    named COPYING and the pdfTeX source.
    Primary author of ttf2afm: Han The Thanh.

    H:\MikTeX\texmf.2.3s\texmf\miktex\bin\ttf2afm.exe -v
    (no version displayed or printed to console)

    H:\MikTeXTest\MikTeX.2.9p\texmf\miktex\bin\pdftex --version
    MiKTeX-pdfTeX 2.9.4225 (1.40.12) (MiKTeX 2.9)
    Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh
    TeX is a trademark of the American Mathematical Society.

    H:\MikTeX\texmf.2.3s\texmf\miktex\bin\pdftex --version
    MiKTeX-pdfTeX 2.3.1222 (1.10b) (MiKTeX 2.3)
    Copyright (C) 1982 D. E. Knuth, (C) 1996-2002 Han The Thanh
    TeX is a trademark of the American Mathematical Society.
    Exit code: 0

    ==============================================================================

    *.afm 2.9 version output - does not work:
    StartFontMetrics 2.0
    Comment Converted at Mon Jun 04 16:21:46 2012 by ttf2afm from font file
    `tahoma.ttf'
    Tahoma
    Tahoma
    Tahoma
    Normal
    ItalicAngle 0
    IsFixedPitch false
    FontBBox -599 -207 1338 1034
    UnderlinePosition -83
    UnderlineThickness 63
    Version 3.15
    © 2004 Microsoft Corporation. All rights reserved.
    EncodingScheme FontSpecific
    Ascender 1000
    Descender -206
    StartCharMetrics 2036
    ...

    ==============================================================================

    *.afm 2.9 version output, edited - does work (added 'redundant' lines with prefixes 'FontName', 'FullName' etc.):
    StartFontMetrics 2.0
    FontName Tahoma
    FullName Tahoma
    FamilyName Tahoma
    Weight Normal
    Comment Converted at Mon Jun 04 16:21:46 2012 by ttf2afm from font file
    `tahoma.ttf'
    Tahoma
    Tahoma
    Tahoma
    Normal
    ItalicAngle 0
    IsFixedPitch false
    FontBBox -599 -207 1338 1034
    UnderlinePosition -83
    UnderlineThickness 63
    Version 3.15
    © 2004 Microsoft Corporation. All rights reserved.
    EncodingScheme FontSpecific
    Ascender 1000
    Descender -206
    StartCharMetrics 2036

    ==============================================================================

    *.afm 2.3 version output:
    Comment Converted at Mon Jun 04 16:21:46 2012 by ttf2afm from font file
    `tahoma.ttf'
    StartFontMetrics 2.0
    FontName Tahoma
    FullName Tahoma
    Notice © 2004 Microsoft Corporation. All rights reserved.
    ItalicAngle 0
    IsFixedPitch false
    FontBBox -599 -207 1338 1034
    UnderlinePosition -83
    UnderlineThickness 63
    Ascender 1000
    Descender -206

    StartCharMetrics 248
    ...

     
  • info wanna
    info wanna
    2012-06-05

    Oops - where I type ttf2asm I mean ttf2afm - type-o!
    The version of ttf2afm shipped with miktex 2.9 is what I mean.