[gs-bugs] [Bug 690611] New: TrueType fonts with malformed name tables aren't handled properly

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Wed Jul 8 14:23:04 PDT 2009


           Summary: TrueType fonts with malformed name tables aren't handled
           Product: Ghostscript
           Version: HEAD
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Text
        AssignedTo: support at artifex.com
        ReportedBy: marcos.woehrmann at artifex.com
         QAContact: gs-bugs at ghostscript.com

I haven't had time to test this, but the customer reports:

I've run into a number of TrueType fonts that have slightly malformed 'name'
tables (as is typical for Microsoft file formats, the TT format is unclear
in a lot of areas about what is actually required) that Ghostscript doesn't
handle properly.  Specifically, these fonts have a 'name' table with
platform ID 0 strings that are all empty, but with correct strings for other
platform IDs.  Because of this, Ghostscript uses an empty string for the
font name when loading these fonts, which is wrong: I think Ghostscript
should clearly look for a non-empty string.

I think the right place to fix this is in the findname procedure in
Resource/Init/gs_ttf.ps, since findname is used for locating the font name
by both .findttfontname and .ttkeys.  If I weren't running around getting
ready to leave town for a month on Sunday, I'd send a fix, but I just don't
have time right now, so please pass this along to the appropriate engineer.
I've attached an example font with this problem.

------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the gs-bugs mailing list