From: Ian Jackson Date: Sun, 12 Jun 2022 22:43:12 +0000 (+0100) Subject: clock: Explain why separate rendering with abs positions X-Git-Tag: otter-1.2.0~34 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1e334bc28c57f11be83701c5352a73787bc4918e;p=otter.git clock: Explain why separate rendering with abs positions Signed-off-by: Ian Jackson --- 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,