mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +00:00
LibPDF: Make SimpleFont::draw_glyph() fallible
This commit is contained in:
parent
843e9daa8c
commit
6c1da5db54
Notes:
sideshowbarker
2024-07-16 22:34:39 +09:00
Author: https://github.com/nico
Commit: 6c1da5db54
Pull-request: https://github.com/SerenityOS/serenity/pull/21946
Reviewed-by: https://github.com/AtkinsSJ
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