Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15c44a5

Browse files
committed
mend
1 parent 4ece8ab commit 15c44a5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/ft2font.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,14 +651,13 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph,
651651
glyph_seen_fonts.insert(face->family_name);
652652

653653
if (glyph_index || override) {
654-
655654
charcode_error = FT_Load_Glyph(face, glyph_index, flags);
656655
if (charcode_error) {
657656
return false;
658657
}
659658
FT_Glyph thisGlyph;
660659
glyph_error = FT_Get_Glyph(face->glyph, &thisGlyph);
661-
if (glyph_error){
660+
if (glyph_error) {
662661
return false;
663662
}
664663

@@ -676,9 +675,9 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph,
676675
else {
677676
for (size_t i = 0; i < fallbacks.size(); ++i) {
678677
bool was_found = fallbacks[i]->load_char_with_fallback(
679-
ft_object_with_glyph, final_glyph_index, parent_glyphs, parent_char_to_font,
680-
parent_glyph_to_font, charcode, flags, charcode_error, glyph_error,
681-
glyph_seen_fonts, override);
678+
ft_object_with_glyph, final_glyph_index, parent_glyphs,
679+
parent_char_to_font, parent_glyph_to_font, charcode, flags,
680+
charcode_error, glyph_error, glyph_seen_fonts, override);
682681
if (was_found) {
683682
return true;
684683
}

0 commit comments

Comments
 (0)