freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetype] Freetype2 2.0.8 segfault on particular truetype font


From: Nelson H. F. Beebe
Subject: Re: [Freetype] Freetype2 2.0.8 segfault on particular truetype font file
Date: Fri, 22 Feb 2002 06:15:58 -0700 (MST)

Mike <address@hidden> reports on Fri, 22 Feb 2002 15:39:50 +0800:

>> ...
>> There's a particular font I have, foxjump.ttf, that causes a segfault in
>> the freetype libraries. 
>> ...

I fetched the

        http://www.ozemail.com.au/~philcam/foxjump.zip

distribution with the Foxjump font, and tried several TTF tools on the
font:

        ttf2bdf
        ttf2pt1
        ttfdump
        ttfps
        ttftot42

The one anomaly was in this run:

        % ttfps FOXJUMP.TTF foxjump.pfa
        Inconsistency between `maxp' and `nglyphs' tables!

I then tried gs-7.03 to display the font:

        % cat Fontmap
        /Foxjump                (FOXJUMP.TTF) ;

        % gs prfont.ps
        AFPL Ghostscript 7.03 (2001-10-20)
        Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
        This software comes with NO WARRANTY: see the file PUBLIC for details.
        Loading NimbusRomNo9L-Regu font from
        /usr/local/share/ghostscript/fonts/n021003l.pfb... 2933184 1380446 
1622528
        330315 0 done.
        GS>/Foxjump DoFont
        Loading Foxjump font from ./FOXJUMP.TTF... Error: /rangecheck in
        --getinterval--
        Operand stack:
           Foxjump   Foxjump   Font   Foxjump   335995   Foxjump   
--nostringval--
        Foxjump   (./FOXJUMP.TTF)   false   --nostringval--   CharStrings
        --dict:127/128(ro)(L)--   Encoding   --nostringval-
        ....

Perhaps these are also clues about what might be wrong.

Unfortunately, I don't have any tools that can convert from Type 1 (or
42) to TrueType; otherwise, I'd try a round-trip conversion.

I appear to have a local installation problem with the ttdump/ttundump
pair:

        % ttdump FOXJUMP.TTF
        Traceback (most recent call last):
          File "/usr/local/share/lib/FontTools/ttDump.py", line 31, in ?
            from fontTools import ttLib
        ImportError: No module named fontTools

This would have given a TTF -> XML -> TTF round-trip test.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah                    Internet e-mail: address@hidden  -
- Department of Mathematics, 322 INSCC      address@hidden  address@hidden -
- 155 S 1400 E RM 233                       address@hidden                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]