diff options
| author | Martin Haug <mhaug@live.de> | 2021-11-20 12:36:03 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2021-11-20 12:36:03 +0100 |
| commit | c020707ebc02be12290224d00679b6b323665c1f (patch) | |
| tree | b59206f46f78b258da795b7ed65c9b920e1320dc /src/style/mod.rs | |
| parent | 63c274e7f6aa3a8c3f43abb91935ec924a186f73 (diff) | |
Add tracking to font function
Diffstat (limited to 'src/style/mod.rs')
| -rw-r--r-- | src/style/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/style/mod.rs b/src/style/mod.rs index 60734716..bb662032 100644 --- a/src/style/mod.rs +++ b/src/style/mod.rs @@ -140,6 +140,8 @@ pub struct TextStyle { pub families: Rc<FamilyStyle>, /// OpenType features. pub features: Rc<FontFeatures>, + /// The amount of space that should be added between character. + pub tracking: Em, /// Whether 300 extra font weight should be added to what is defined by the /// `variant`. pub strong: bool, @@ -222,6 +224,7 @@ impl Default for TextStyle { fill: Paint::Color(Color::Rgba(RgbaColor::BLACK)), families: Rc::new(FamilyStyle::default()), features: Rc::new(FontFeatures::default()), + tracking: Em::zero(), strong: false, emph: false, monospace: false, |
