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

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
parent 843e9daa8c
commit 6c1da5db54
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;