diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2008-02-15 14:29:53 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2008-02-15 14:29:53 +0000 |
commit | 21854aa6efbf4fb1013d04ec22340388af752dc7 (patch) | |
tree | 1dd738bcec8756046f169782fd61daf290eb5fee /Build/source/texk/xdvipdfmx/src/tt_post.c | |
parent | 8ffd652f16549581f95dc60a3f383774a6df2e5d (diff) |
merged updates from xdvipdfmx repos. rev 108
git-svn-id: svn://tug.org/texlive/trunk@6637 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/tt_post.c')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/tt_post.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/tt_post.c b/Build/source/texk/xdvipdfmx/src/tt_post.c index 5a2b513e156..8779010a205 100644 --- a/Build/source/texk/xdvipdfmx/src/tt_post.c +++ b/Build/source/texk/xdvipdfmx/src/tt_post.c @@ -138,15 +138,20 @@ tt_read_post_table (sfnt *sfont) post->names = NULL; } else if (post->Version == 0x00020000UL) { if (read_v2_post_names(post, sfont) < 0) { - WARN("Invalid TrueType 'post' table..."); + WARN("Invalid version 2.0 'post' table"); tt_release_post_table(post); post = NULL; } - } else if (post->Version == 0x00030000UL) { + } else if (post->Version == 0x00030000UL) { /* no glyph names provided */ post->numberOfGlyphs = 0; /* wrong */ post->glyphNamePtr = NULL; post->count = 0; post->names = NULL; + } else if (post->Version == 0x00040000UL) { /* Apple format for printer-based fonts */ + post->numberOfGlyphs = 0; /* don't bother constructing char names, not sure if they'll ever be needed */ + post->glyphNamePtr = NULL; + post->count = 0; + post->names = NULL; } else { WARN("Unknown 'post' version: %08X", post->Version); tt_release_post_table(post); |