diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-02 10:30:27 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-02 10:39:45 +0100 |
| commit | c4a87e5e7c5032d2579cdd23939aedec499f93f0 (patch) | |
| tree | ddc1127ccc209084369b64587ea3a76c0848b62f /src/style | |
| parent | 072e7c710c763904ad3ee72cfb05252f9f0d3929 (diff) | |
Number style -> type
Diffstat (limited to 'src/style')
| -rw-r--r-- | src/style/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/style/mod.rs b/src/style/mod.rs index cb27181f..4b1d2837 100644 --- a/src/style/mod.rs +++ b/src/style/mod.rs @@ -268,7 +268,7 @@ pub struct FontFeatures { pub smallcaps: bool, /// Whether to apply stylistic alternates. ("salt") pub alternates: bool, - /// Which stylistic set to apply. ("ss00" - "ss20") + /// Which stylistic set to apply. ("ss01" - "ss20") pub stylistic_set: Option<u8>, /// Configuration of ligature features. pub ligatures: LigatureFeatures, @@ -317,7 +317,7 @@ impl Default for LigatureFeatures { #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] pub struct NumberFeatures { /// Whether to use lining or old-style numbers. - pub style: NumberStyle, + pub type_: NumberType, /// Whether to use proportional or tabular numbers. pub width: NumberWidth, /// How to position numbers vertically. @@ -331,7 +331,7 @@ pub struct NumberFeatures { impl Default for NumberFeatures { fn default() -> Self { Self { - style: NumberStyle::Auto, + type_: NumberType::Auto, width: NumberWidth::Auto, position: NumberPosition::Normal, slashed_zero: false, @@ -340,9 +340,9 @@ impl Default for NumberFeatures { } } -/// How numbers / figures look. +/// Which kind of numbers / figures to select. #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] -pub enum NumberStyle { +pub enum NumberType { /// Select the font's preference. Auto, /// Numbers that fit well with capital text. ("lnum") |
