diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-03 11:18:25 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-03 11:18:25 +0200 |
| commit | 75e6dbfbe6cbd3c3245c825627881a16bfbd6c5d (patch) | |
| tree | 587b57e5ab09b72ca0d2a5c25cf2cb8f8579303e /src/style.rs | |
| parent | 730715c064294337ee9befc3b9332d45eb74818f (diff) | |
Rename bold/italic to strong/emph ✏
Diffstat (limited to 'src/style.rs')
| -rw-r--r-- | src/style.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/style.rs b/src/style.rs index 9402f11d..7da7f0c6 100644 --- a/src/style.rs +++ b/src/style.rs @@ -22,12 +22,12 @@ pub struct TextStyle { pub fallback: FallbackTree, /// The selected font variant. pub variant: FontVariant, - /// Whether the bolder toggle is active or inactive. This determines + /// Whether the strong toggle is active or inactive. This determines /// whether the next `*` adds or removes font weight. - pub bolder: bool, - /// Whether the italic toggle is active or inactive. This determines + pub strong: bool, + /// Whether the emphasis toggle is active or inactive. This determines /// whether the next `_` makes italic or non-italic. - pub italic: bool, + pub emph: bool, /// The base font size. pub base_font_size: f64, /// The font scale to apply on the base font size. @@ -83,8 +83,8 @@ impl Default for TextStyle { weight: FontWeight::REGULAR, stretch: FontStretch::Normal, }, - bolder: false, - italic: false, + strong: false, + emph: false, base_font_size: Length::pt(11.0).as_raw(), font_scale: 1.0, word_spacing_scale: 0.25, |
