Added STBTT_PLATFORM_ID_UNICODE

Added a STBTT_PLATFORM_ID_UNICODE clause to support iOS/Mac fonts
This commit is contained in:
HouQiming 2014-07-02 18:58:52 +08:00
parent df29024046
commit 8c83fc2bad

View File

@ -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)