From 02dc29d18a7b67edf0eaa5d125be22eec6cfebb7 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 6 Feb 2020 11:15:48 +0100 Subject: =?UTF-8?q?Highlight=20bold=20/=20italic=20/=20monospace=20?= =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/style.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/style.rs') 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, -- cgit v1.2.3