SceneExt::push_layout make transform apply to offsets

This commit is contained in:
Sebastian Köln 2019-07-03 14:41:03 +03:00
parent b886c157c1
commit 2f6c33cbcb
1 changed files with 1 additions and 1 deletions

View File

@ -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,