mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
Font: Eagerly load all 256 glyphs. It's not that many.
This commit is contained in:
@@ -47,12 +47,7 @@ void GTextBox::paint_event(GPaintEvent&)
|
||||
if (ch == ' ')
|
||||
continue;
|
||||
int x = innerRect.x() + (i * font().glyph_width());
|
||||
auto* bitmap = font().glyph_bitmap(ch);
|
||||
if (!bitmap) {
|
||||
dbgprintf("GTextBox: glyph missing: %02x\n", ch);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
painter.draw_bitmap({x, y}, *bitmap, Color::Black);
|
||||
painter.draw_bitmap({x, y}, font().glyph_bitmap(ch), Color::Black);
|
||||
}
|
||||
|
||||
if (is_focused() && m_cursorBlinkState) {
|
||||
|
||||
Reference in New Issue
Block a user