GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove forced fallback from FT2Font::load_char · matplotlib/matplotlib@39c8238

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • ft2font.cpp
    • ft2font.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/ft2font.cpp‎

Copy file name to clipboardExpand all lines: src/ft2font.cpp
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ void FT2Font::load_char(long charcode, FT_Int32 flags, FT2Font *&ft_object, bool
552552
bool was_found = load_char_with_fallback(ft_object_with_glyph, final_glyph_index,
553553
glyphs, char_to_font,
554554
charcode, flags, charcode_error, glyph_error,
555-
glyph_seen_fonts, true);
555+
glyph_seen_fonts);
556556
if (!was_found) {
557557
ft_glyph_warn(charcode, glyph_seen_fonts);
558558
if (charcode_error) {
@@ -613,15 +613,14 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph,
613613
FT_Int32 flags,
614614
FT_Error &charcode_error,
615615
FT_Error &glyph_error,
616-
std::set<FT_String*> &glyph_seen_fonts,
617-
bool override = false)
616+
std::set<FT_String*> &glyph_seen_fonts)
618617
{
619618
FT_UInt glyph_index = FT_Get_Char_Index(face, charcode);
620619
if (!warn_if_used) {
621620
glyph_seen_fonts.insert(face->family_name);
622621
}
623622

624-
if (glyph_index || override) {
623+
if (glyph_index) {
625624
charcode_error = FT_Load_Glyph(face, glyph_index, flags);
626625
if (charcode_error) {
627626
return false;
@@ -647,7 +646,7 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph,
647646
bool was_found = fallback->load_char_with_fallback(
648647
ft_object_with_glyph, final_glyph_index, parent_glyphs,
649648
parent_char_to_font, charcode, flags,
650-
charcode_error, glyph_error, glyph_seen_fonts, override);
649+
charcode_error, glyph_error, glyph_seen_fonts);
651650
if (was_found) {
652651
return true;
653652
}
Collapse file

‎src/ft2font.h‎

Copy file name to clipboardExpand all lines: src/ft2font.h
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ class FT2Font
131131
FT_Int32 flags,
132132
FT_Error &charcode_error,
133133
FT_Error &glyph_error,
134-
std::set<FT_String*> &glyph_seen_fonts,
135-
bool override);
134+
std::set<FT_String*> &glyph_seen_fonts);
136135
void load_glyph(FT_UInt glyph_index, FT_Int32 flags);
137136
std::tuple<long, long> get_width_height();
138137
std::tuple<long, long> get_bitmap_offset();

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.