From 8c83fc2bad7d97a641aea0e07bcd578910c3ede7 Mon Sep 17 00:00:00 2001 From: HouQiming Date: Wed, 2 Jul 2014 18:58:52 +0800 Subject: [PATCH] Added STBTT_PLATFORM_ID_UNICODE Added a STBTT_PLATFORM_ID_UNICODE clause to support iOS/Mac fonts --- stb_truetype.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stb_truetype.h b/stb_truetype.h index b1f81ed..5e4945b 100644 --- a/stb_truetype.h +++ b/stb_truetype.h @@ -881,6 +881,9 @@ int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data2, int fontsta break; } break; + case STBTT_PLATFORM_ID_UNICODE: + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; } } if (info->index_map == 0)