mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +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:
parent
41ce6d0cd0
commit
ae59d8a728
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue