SceneExt::push_layout make transform apply to offsets
This commit is contained in:
parent
b886c157c1
commit
2f6c33cbcb
|
@ -94,7 +94,7 @@ impl SceneExt for Scene {
|
||||||
let scale = style.size / (font.metrics().units_per_em as f32);
|
let scale = style.size / (font.metrics().units_per_em as f32);
|
||||||
let scale = Vector2F::new(scale, -scale);
|
let scale = Vector2F::new(scale, -scale);
|
||||||
let transform =
|
let transform =
|
||||||
Transform2DF::from_scale(scale).post_mul(transform).post_translate(offset);
|
Transform2DF::from_scale(scale).post_translate(offset).post_mul(transform);
|
||||||
self.push_glyph(font,
|
self.push_glyph(font,
|
||||||
glyph.glyph_id,
|
glyph.glyph_id,
|
||||||
&transform,
|
&transform,
|
||||||
|
|
Loading…
Reference in New Issue