From 61b86192f48ee2daed0d727d21d74d7276aab19f Mon Sep 17 00:00:00 2001 From: Kevin Boos <kevinaboos@gmail.com> Date: Mon, 8 Apr 2024 11:01:18 -0700 Subject: [PATCH] clarify font comment --- src/shared/styles.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/styles.rs b/src/shared/styles.rs index c786c9bc..4a45d7e7 100644 --- a/src/shared/styles.rs +++ b/src/shared/styles.rs @@ -30,10 +30,10 @@ live_design! { MESSAGE_TEXT_COLOR = #x777 MESSAGE_TEXT_LINE_SPACING = 1.35 MESSAGE_TEXT_HEIGHT_FACTOR = 1.5 + // This font should only be used for plaintext labels. Don't use this for Html content, + // as the Html widget sets different fonts for different text styles (e.g., bold, italic). MESSAGE_TEXT_STYLE = { font: {path: dep("crate://makepad-widgets/resources/GoNotoKurrent-Regular.ttf")} - // Don't set the actual font here, as the Html widget sets different fonts for - // different text styles (e.g., bold, italic, etc) font_size: (MESSAGE_FONT_SIZE), height_factor: (MESSAGE_TEXT_HEIGHT_FACTOR), line_spacing: (MESSAGE_TEXT_LINE_SPACING),