A previous signed-ness fix broke display of non-ansi chars, fix this.
This commit is contained in:
parent
75139a3e01
commit
399e6911b3
|
@ -2212,7 +2212,7 @@ static FT_UInt get_glyph_index(GdiFont font, UINT glyph)
|
|||
WCHAR wc = (WCHAR)glyph;
|
||||
char buf;
|
||||
WideCharToMultiByte(font->codepage, 0, &wc, 1, &buf, sizeof(buf), 0, 0);
|
||||
return pFT_Get_Char_Index(font->ft_face, buf);
|
||||
return pFT_Get_Char_Index(font->ft_face, (unsigned char)buf);
|
||||
}
|
||||
|
||||
if(font->charset == SYMBOL_CHARSET && glyph < 0x100)
|
||||
|
|
Loading…
Reference in New Issue