Explorar o código

Merge branch 'is-apple-font' of https://github.com/IntellectualKitty/stb into working

Sean Barrett %!s(int64=8) %!d(string=hai) anos
pai
achega
834199151e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      stb_truetype.h

+ 1 - 0
stb_truetype.h

@@ -1142,6 +1142,7 @@ static int stbtt__isfont(stbtt_uint8 *font)
    if (stbtt_tag(font, "typ1"))   return 1; // TrueType with type 1 font -- we don't support this!
    if (stbtt_tag(font, "OTTO"))   return 1; // OpenType with CFF
    if (stbtt_tag4(font, 0,1,0,0)) return 1; // OpenType 1.0
+   if (stbtt_tag(font, "true"))   return 1; // Apple specification for TrueType fonts
    return 0;
 }