| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -527,7 +527,7 @@ void FT2Font::load_char(long charcode, FT_Int32 flags, FT2Font *&ft_object, bool | |||
| 527 | 527 | ft_object->load_char(charcode, flags, throwaway, false); | |
| 528 | 528 | } else if (fallback) { | |
| 529 | 529 | FT_UInt final_glyph_index; | |
| 530 | - FT_Error charcode_error, glyph_error; | ||
| 530 | + FT_Error charcode_error = FT_Err_Ok, glyph_error = FT_Err_Ok; | ||
| 531 | 531 | FT2Font *ft_object_with_glyph = this; | |
| 532 | 532 | bool was_found = load_char_with_fallback(ft_object_with_glyph, final_glyph_index, | |
| 533 | 533 | glyphs, char_to_font, | |
@@ -595,6 +595,8 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph, | |||
| 595 | 595 | FT_Error &glyph_error, | |
| 596 | 596 | std::set<FT_String*> &glyph_seen_fonts) | |
| 597 | 597 | { | |
| 598 | + charcode_error = FT_Err_Ok; | ||
| 599 | + glyph_error = FT_Err_Ok; | ||
| 598 | 600 | FT_UInt glyph_index = FT_Get_Char_Index(face, charcode); | |
| 599 | 601 | if (!warn_if_used) { | |
| 600 | 602 | glyph_seen_fonts.insert(face->family_name); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments