mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
LibWeb: Remove glyph run allocation in paint_text_fragment()
Instead of allocating a new glyph run to scale glyph positions and fonts, a scale factor could be encoded in a paint command and applied later during command execution.
This commit is contained in:
parent
aeb5a0d9e8
commit
cf6999f5f3
11 changed files with 25 additions and 27 deletions
|
@ -42,6 +42,7 @@ struct DrawGlyphRun {
|
|||
Color color;
|
||||
Gfx::IntRect rect;
|
||||
Gfx::FloatPoint translation;
|
||||
double scale { 1 };
|
||||
|
||||
[[nodiscard]] Gfx::IntRect bounding_rect() const { return rect; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue