[main] Recognize Apple SFNTs
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 4 May 2010 18:10:18 +0000 (14:10 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 4 May 2010 18:10:18 +0000 (14:10 -0400)
src/hb-open-file-private.hh
src/main.cc

index f25522e..e09bd80 100644 (file)
@@ -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; }
 
index 2e0927a..b3b12d0 100644 (file)
@@ -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;