Apply Transform scaling to text primitives

This commit is contained in:
Héctor Ramón Jiménez 2023-10-24 02:51:02 +02:00
parent 9b8614a4e2
commit aa41d7656e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 17 additions and 2 deletions

View file

@ -169,7 +169,7 @@ impl<'a> Layer<'a> {
layer.text.push(Text::Cached(text::Cached {
content,
bounds: *bounds * transformation,
size: *size,
size: *size * transformation.scale_y(),
line_height: *line_height,
color: *color,
font: *font,