From ce5694c79671bf75990923c1da17bb611e4e7d15 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 May 2010 14:10:18 -0400 Subject: [PATCH] [main] Recognize Apple SFNTs --- src/hb-open-file-private.hh | 4 ++-- src/main.cc | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/hb-open-file-private.hh b/src/hb-open-file-private.hh index f25522e..e09bd80 100644 --- a/src/hb-open-file-private.hh +++ b/src/hb-open-file-private.hh @@ -193,8 +193,8 @@ struct OpenTypeFontFile static const hb_tag_t CFFTag = HB_TAG ('O','T','T','O'); /* OpenType with Postscript outlines */ static const hb_tag_t TrueTypeTag = HB_TAG ( 0 , 1 , 0 , 0 ); /* OpenType with TrueType outlines */ static const hb_tag_t TTCTag = HB_TAG ('t','t','c','f'); /* TrueType Collection */ - static const hb_tag_t TrueTag = HB_TAG ('t','r','u','e'); /* Apple obsolete tag */ - static const hb_tag_t Typ1Tag = HB_TAG ('t','y','p','1'); /* Apple obsolete tag */ + static const hb_tag_t TrueTag = HB_TAG ('t','r','u','e'); /* Obsolete Apple TrueType */ + static const hb_tag_t Typ1Tag = HB_TAG ('t','y','p','1'); /* Obsolete Apple Type1 font in SFNT container */ inline hb_tag_t get_tag (void) const { return u.tag; } diff --git a/src/main.cc b/src/main.cc index 2e0927a..b3b12d0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -73,6 +73,12 @@ main (int argc, char **argv) case OpenTypeFontFile::TTCTag: printf ("TrueType Collection of OpenType fonts\n"); break; + case OpenTypeFontFile::TrueTag: + printf ("Obsolete Apple TrueType font\n"); + break; + case OpenTypeFontFile::Typ1Tag: + printf ("Obsolete Apple Type1 font in SFNT container\n"); + break; default: printf ("Unknown font format\n"); break; -- 2.7.4