diff options
Diffstat (limited to 'src/style.rs')
| -rw-r--r-- | src/style.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/style.rs b/src/style.rs index 075baa5a..57d6b6f3 100644 --- a/src/style.rs +++ b/src/style.rs @@ -24,6 +24,8 @@ pub struct TextStyle { /// Whether the bolder toggle is active or inactive. This determines /// whether the next `*` adds or removes font weight. pub bolder: bool, + /// Whether the monospace toggle is active or inactive. + pub monospace: bool, /// The base font size. pub base_font_size: Size, /// The font scale to apply on the base font size. @@ -77,6 +79,7 @@ impl Default for TextStyle { weight: FontWeight(400), }, bolder: false, + monospace: false, base_font_size: Size::pt(11.0), font_scale: 1.0, word_spacing_scale: 0.25, |
