Added STBTT_PLATFORM_ID_UNICODE
Added a STBTT_PLATFORM_ID_UNICODE clause to support iOS/Mac fonts
This commit is contained in:
parent
df29024046
commit
8c83fc2bad
@ -881,6 +881,9 @@ int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data2, int fontsta
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case STBTT_PLATFORM_ID_UNICODE:
|
||||||
|
info->index_map = cmap + ttULONG(data+encoding_record+4);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (info->index_map == 0)
|
if (info->index_map == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user