From 1e334bc28c57f11be83701c5352a73787bc4918e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 12 Jun 2022 23:43:12 +0100 Subject: [PATCH] clock: Explain why separate rendering with abs positions Signed-off-by: Ian Jackson --- src/clock.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/clock.rs b/src/clock.rs index bd042565..67ea4590 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -504,6 +504,8 @@ impl PieceTrait for Clock { y, font, Html::lit(show.text), mins_pad, HtmlStr::from_html_str(&mins), Html::lit(show.sigil) )?; + // We write this separately because, empirically, not all the + // sigil characters have the same width, even in a mono font. hwrite!(f, r##" <{} x="14" y="{}" {} fill="{}" >{:02}"##, HTML_TEXT_LABEL_ELEM_START, -- 2.30.2