Expose subpixel offsets in LayoutGlyph

This commit is contained in:
Héctor Ramón Jiménez 2022-12-15 05:04:39 +01:00 committed by Jeremy Soller
parent ac28f5d77c
commit 01f6c1fd89
2 changed files with 6 additions and 0 deletions

View file

@ -20,6 +20,10 @@ pub struct LayoutGlyph {
pub rtl: bool,
/// Cache key, see [CacheKey]
pub cache_key: CacheKey,
// X offset in line
pub x_offset: f32,
// Y offset in line
pub y_offset: f32,
/// Integer component of X offset in line
pub x_int: i32,
/// Integer component of Y offset in line

View file

@ -262,6 +262,8 @@ impl ShapeGlyph {
w: x_advance,
rtl,
cache_key,
x_offset,
y_offset,
x_int,
y_int,
color_opt: self.color_opt,