summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/src/tt_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/tt_post.c')
-rw-r--r--Build/source/texk/xdvipdfmx/src/tt_post.c9
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);