Truncate Y coordinate in LayoutGlyph::physical
This commit is contained in:
parent
eb09cf0259
commit
c3cd24dc97
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ impl CacheKey {
|
|||
pos: (f32, f32),
|
||||
) -> (Self, i32, i32) {
|
||||
let (x, x_bin) = SubpixelBin::new(pos.0);
|
||||
let (y, y_bin) = SubpixelBin::new(pos.1.trunc());
|
||||
let (y, y_bin) = SubpixelBin::new(pos.1);
|
||||
(
|
||||
Self {
|
||||
font_id,
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ impl LayoutGlyph {
|
|||
self.font_size * scale,
|
||||
(
|
||||
(self.x + x_offset) * scale + offset.0,
|
||||
(self.y - y_offset) * scale + offset.1,
|
||||
((self.y - y_offset) * scale + offset.1).trunc(), // Hinting in Y axis
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue