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:
parent
843e9daa8c
commit
6c1da5db54
6 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue