comments/ version update for platformID = Unicode
This commit is contained in:
parent
0adfac0abe
commit
d26beed67d
@ -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
|
// authored from 2009-2013 by Sean Barrett / RAD Game Tools
|
||||||
//
|
//
|
||||||
// This library processes TrueType files:
|
// This library processes TrueType files:
|
||||||
@ -32,9 +32,11 @@
|
|||||||
// Ivan-Assen Ivanov
|
// Ivan-Assen Ivanov
|
||||||
// Anthony Pesch
|
// Anthony Pesch
|
||||||
// Johan Duparc
|
// Johan Duparc
|
||||||
|
// Hou Qiming
|
||||||
//
|
//
|
||||||
// VERSION HISTORY
|
// 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.8b (2014-07-07) fix a warning
|
||||||
// 0.8 (2014-05-25) fix a few more warnings
|
// 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
|
// 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;
|
break;
|
||||||
case STBTT_PLATFORM_ID_UNICODE:
|
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);
|
info->index_map = cmap + ttULONG(data+encoding_record+4);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user