Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9324b27 + 3ba2e6d commit 7684f0fCopy full SHA for 7684f0f
1 file changed
src/ft2font.cpp
@@ -168,7 +168,7 @@ inline double conv(long v)
168
FT_UInt ft_get_char_index_or_warn(FT_Face face, FT_ULong charcode)
169
{
170
FT_UInt glyph_index = FT_Get_Char_Index(face, charcode);
171
- if (!glyph_index) {
+ if (charcode && !glyph_index) {
172
PyErr_WarnEx(NULL, "Required glyph missing from current font.", 1);
173
}
174
return glyph_index;
0 commit comments