Hot fix before author of stb_truetype library fix issues:

https://github.com/nothings/stb/issues/1283

Add ability to open symbol fonts on windows
This commit is contained in:
Filip Sykala 2022-03-03 17:12:34 +01:00
parent 133ce45aeb
commit 699533e22a
2 changed files with 6 additions and 0 deletions

View File

@ -12,3 +12,8 @@ b71d787f695c779e571865d5214d4da8d50aa7c5
imgui_stdlib.h + imgui_stdlib.cpp are move from directory /imgui/misc/cpp/
InputText() wrappers for C++ standard library (STL) type: std::string.
This is also an example of how you may wrap your own similar types.
imstb_truetype.h modification:
Hot fix for open symbolic fonts on windows
62bdfe6f8d04b88e8bd511cd613be80c0baa7f55

View File

@ -1437,6 +1437,7 @@ static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, in
switch(ttUSHORT(data+encoding_record)) {
case STBTT_PLATFORM_ID_MICROSOFT:
switch (ttUSHORT(data+encoding_record+2)) {
case STBTT_MS_EID_SYMBOL:
case STBTT_MS_EID_UNICODE_BMP:
case STBTT_MS_EID_UNICODE_FULL:
// MS/Unicode