Fix y offset
This commit is contained in:
parent
cf43655357
commit
10870f3c81
1 changed files with 2 additions and 2 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue