LibPDF: Make SimpleFont::draw_glyph() fallible

This commit is contained in:
Nico Weber 2023-11-14 08:26:46 -05:00 committed by Sam Atkins
commit 6c1da5db54
Notes: sideshowbarker 2024-07-16 22:34:39 +09:00
6 changed files with 9 additions and 7 deletions

View file

@ -58,7 +58,7 @@ PDFErrorOr<Gfx::FloatPoint> SimpleFont::draw_string(Gfx::Painter& painter, Gfx::
else
glyph_width = m_missing_width;
draw_glyph(painter, glyph_position, glyph_width, char_code, paint_color);
TRY(draw_glyph(painter, glyph_position, glyph_width, char_code, paint_color));
auto tx = glyph_width;
tx += character_spacing;