Expose subpixel offsets in LayoutGlyph
This commit is contained in:
parent
ac28f5d77c
commit
01f6c1fd89
2 changed files with 6 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ pub struct LayoutGlyph {
|
||||||
pub rtl: bool,
|
pub rtl: bool,
|
||||||
/// Cache key, see [CacheKey]
|
/// Cache key, see [CacheKey]
|
||||||
pub cache_key: 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
|
/// Integer component of X offset in line
|
||||||
pub x_int: i32,
|
pub x_int: i32,
|
||||||
/// Integer component of Y offset in line
|
/// Integer component of Y offset in line
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,8 @@ impl ShapeGlyph {
|
||||||
w: x_advance,
|
w: x_advance,
|
||||||
rtl,
|
rtl,
|
||||||
cache_key,
|
cache_key,
|
||||||
|
x_offset,
|
||||||
|
y_offset,
|
||||||
x_int,
|
x_int,
|
||||||
y_int,
|
y_int,
|
||||||
color_opt: self.color_opt,
|
color_opt: self.color_opt,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue