From d26beed67dd2cd133805ffa7637e08d7912acb08 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 7 Aug 2014 04:41:02 -0700 Subject: [PATCH] comments/ version update for platformID = Unicode --- stb_truetype.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stb_truetype.h b/stb_truetype.h index dfa2478..f2efda8 100644 --- a/stb_truetype.h +++ b/stb_truetype.h @@ -1,4 +1,4 @@ -// stb_truetype.h - v0.8b - public domain +// stb_truetype.h - v0.9 - public domain // authored from 2009-2013 by Sean Barrett / RAD Game Tools // // This library processes TrueType files: @@ -32,9 +32,11 @@ // Ivan-Assen Ivanov // Anthony Pesch // Johan Duparc +// Hou Qiming // // VERSION HISTORY // +// 0.9 (2014-08-07) support certain mac/iOS fonts without an MS platformID // 0.8b (2014-07-07) fix a warning // 0.8 (2014-05-25) fix a few more warnings // 0.7 (2013-09-25) bugfix: subpixel glyph bug fixed in 0.5 had come back @@ -884,6 +886,8 @@ int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data2, int fontsta } break; case STBTT_PLATFORM_ID_UNICODE: + // Mac/iOS has these + // all the encodingIDs are unicode, so we don't bother to check it info->index_map = cmap + ttULONG(data+encoding_record+4); break; }