10000 Merge pull request #11605 from anntzer/spurious-ft2font-missing-glyph… · matplotlib/matplotlib@7684f0f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7684f0f

Browse files
authored
Merge pull request #11605 from anntzer/spurious-ft2font-missing-glyph-warning
MNT: Suppress a spurious missing-glyph warning with ft2font.
2 parents 9324b27 + 3ba2e6d commit 7684f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ft2font.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ inline double conv(long v)
168168
FT_UInt ft_get_char_index_or_warn(FT_Face face, FT_ULong charcode)
169169
{
170170
FT_UInt glyph_index = FT_Get_Char_Index(face, charcode);
171-
if (!glyph_index) {
171+
if (charcode && !glyph_index) {
172172
PyErr_WarnEx(NULL, "Required glyph missing from current font.", 1);
173173
}
174174
return glyph_index;

0 commit comments

Comments
 (0)
0