summaryrefslogtreecommitdiff
path: root/src/style.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-01-05 11:18:13 +0100
committerLaurenz <laurmaedje@gmail.com>2020-01-05 11:18:13 +0100
commitbd384a2a633e21cd7deff7ed2a29a9c03a63a20e (patch)
tree12246c7c9142efe5fc2b2feb14fe4f286e3e177f /src/style.rs
parent7b84f3b553de672e5374e142467f63b10009aeca (diff)
Re-enable *, _ and `.
Diffstat (limited to 'src/style.rs')
-rw-r--r--src/style.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/style.rs b/src/style.rs
index ffa10d51..cbe4bf01 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -20,6 +20,9 @@ pub struct TextStyle {
pub fallback: FontFallbackTree,
/// The selected font variant.
pub variant: FontVariant,
+ /// Whether the bolder toggle is active or inactive. This determines
+ /// whether the next `*` adds or removes font weight.
+ pub bolder: bool,
/// The base font size.
pub base_font_size: Size,
/// The font scale to apply on the base font size.
@@ -80,6 +83,7 @@ impl Default for TextStyle {
style: FontStyle::Normal,
weight: FontWeight(400),
},
+ bolder: false,
base_font_size: Size::pt(11.0),
font_scale: 1.0,
word_spacing_scale: 0.25,