1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibGfx: Paint replacement character, 0xFFFD, for unknown glyphs

Note: most systems now use a font's .notdef character for unknown
glyphs (commonly the tofu box) and reserve 0xFFFD for encoding
errors. Until Serenity supports tofu, 0xFFFD is a preferable, if
deprecated, alternative to '?' to reduce ambiguity.
This commit is contained in:
thankyouverycool 2021-09-09 07:47:48 -04:00 committed by Andreas Kling
parent 41ce6d0cd0
commit ae59d8a728

View file

@ -1216,7 +1216,7 @@ void Painter::draw_glyph_or_emoji(IntPoint const& point, u32 code_point, Font co
auto* emoji = Emoji::emoji_for_code_point(code_point);
if (emoji == nullptr) {
dbgln_if(EMOJI_DEBUG, "Failed to find an emoji for code_point {}", code_point);
draw_glyph(point, '?', font, color);
draw_glyph(point, 0xFFFD, font, color);
return;
}