Skip to content

Commit

Permalink
Fallback fonts should use the first font that works, not the last (#5…
Browse files Browse the repository at this point in the history
…6722)

Co-authored-by: akrieger <[email protected]>
  • Loading branch information
akrieger and akrieger authored Apr 18, 2022
1 parent 9d34edf commit fc1b6bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sdl_font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ void FontFallbackList::OutputChar( const SDL_Renderer_Ptr &renderer,
for( auto it = fonts.begin(); it != fonts.end(); ++it ) {
if( std::next( it ) == fonts.end() || ( *it )->isGlyphProvided( ch ) ) {
cached = glyph_font.emplace( ch, it ).first;
break;
}
}
}
Expand Down

0 comments on commit fc1b6bb

Please sign in to comment.