1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:17:45 +00:00

LibPDF: Fix line drawing when line_width is 0

We used to skip lines with width 0. The correct behavior per spec
is to draw them one pixel wide instead.
This commit is contained in:
Nico Weber 2024-02-20 21:38:45 -05:00 committed by Jelle Raaijmakers
parent 0dde88d714
commit fa95e5ec0e
2 changed files with 17 additions and 6 deletions

View file

@ -176,6 +176,8 @@ private:
Gfx::Path map(Gfx::Path const&) const;
float line_width() const;
Gfx::AffineTransform calculate_image_space_transformation(int width, int height);
PDFErrorOr<NonnullRefPtr<PDFFont>> get_font(FontCacheKey const&);