Merge pull request #210 from s3bk/push_layout_fix

SceneExt::push_layout make transform apply to offsets
This commit is contained in:
Patrick Walton 2019-07-10 08:48:58 -07:00 committed by GitHub
commit abf97c9adb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = Vector2F::new(scale, -scale);
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,
glyph.glyph_id,
&transform,