summaryrefslogtreecommitdiff
path: root/src/style.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-02-13 21:58:49 +0100
committerLaurenz <laurmaedje@gmail.com>2020-02-13 21:58:49 +0100
commit1658b00282b631fb5218f477ea7f45f925644cea (patch)
tree13a0f51f335e687c363a5afb9cc73993a69489cc /src/style.rs
parent60099aed50b89daef29543c4700470e566c48798 (diff)
New syntax features 👔
- Forced line breaks with backslash followed by whitespace - (Multline) raw text in backticks - Set font class fallbacks with [font.family] (e.g. [font.family: monospace=("CMU Typewriter Text")]) - More sophisticated procedure to find end of function, which accounts for comments, strings, raw text and nested functions (this is a mix of a feature and a bug fix)
Diffstat (limited to 'src/style.rs')
-rw-r--r--src/style.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/style.rs b/src/style.rs
index 57d6b6f3..075baa5a 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -24,8 +24,6 @@ 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.
@@ -79,7 +77,6 @@ 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,