From 10870f3c8169c71afd521949c7b49b7870cee8c1 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 7 Oct 2022 10:16:22 -0600 Subject: [PATCH] Fix y offset --- examples/text/src/font/shape.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/text/src/font/shape.rs b/examples/text/src/font/shape.rs index 70eb3dd7..04820693 100644 --- a/examples/text/src/font/shape.rs +++ b/examples/text/src/font/shape.rs @@ -35,7 +35,7 @@ impl<'a> FontShapeGlyph<'a> { font_size as f32, ab_glyph::point( x + x_offset, - y + y_offset, + y - y_offset, ) ) ); @@ -45,7 +45,7 @@ impl<'a> FontShapeGlyph<'a> { .scaled(rusttype::Scale::uniform(font_size as f32)) .positioned(rusttype::point( x + x_offset, - y + y_offset, + y - y_offset, )); #[cfg(feature = "swash")]