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:
parent
0dde88d714
commit
fa95e5ec0e
2 changed files with 17 additions and 6 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue