chiark / gitweb /
Change monospace font to DejaVu Sans
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jun 2022 22:37:46 +0000 (23:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jun 2022 22:37:46 +0000 (23:37 +0100)
A user reported that the specified font wasn't available and they got
somthing that misrendered in the clock.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/ui.rs

index 017461f5b9afe58a218ac8692decf99bfed38baa..b8c79c62499cf9e78fb5d8ad3ec87547fdf12fd6 100644 (file)
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -7,7 +7,7 @@ use crate::prelude::*;
 pub const HELD_SURROUND_COLOUR: &str = "black";
 
 const MONOSPACE: HtmlLit = Html::lit(
-  r#"font-family="Latin Modern Mono, monospace" font-weight="700""#);
+  r#"font-family="DejaVu Sans Mono, monospace" font-weight="700""#);
 
 const USVG_DEFAULT_ARGS_TEXT: &str = include_str!("USVG_DEFAULT_ARGS.txt");