From a90543cdbdcc823a85e109623de8dd58b68e94b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mekina?= Date: Mon, 6 Oct 2025 18:21:55 +0200 Subject: [PATCH] compensate mono font size --- documentation.typ | 10 ++++++++-- template/classic/common.typ | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/documentation.typ b/documentation.typ index 7c011d2..ad86889 100644 --- a/documentation.typ +++ b/documentation.typ @@ -422,8 +422,14 @@ Zde je ukázka definice příloh (je také použita na konci tohoto ukázkového ```typst #attachments( - attach_link("Zdrojový kód této šablony", "https://git.zumepro.cz/tul/tultemplate2"), - attach_content("Testovací obsah vygenerovaný Typstem", [Sem lze psát _stylovaný_ obsah.]), + attach_link( + "Zdrojový kód této šablony", + "https://git.zumepro.cz/tul/tultemplate2" + ), + attach_content( + "Testovací obsah vygenerovaný Typstem", + [Sem lze psát _stylovaný_ obsah.] + ), ) ``` diff --git a/template/classic/common.typ b/template/classic/common.typ index 45f23ea..045a07e 100644 --- a/template/classic/common.typ +++ b/template/classic/common.typ @@ -4,6 +4,7 @@ #let base_font = "Inter"; #let mono_font = "Noto Sans Mono"; +#let mono_font_compensation = 1.3em; #let serif_font = "Merriweather"; #let tul_logomark_size = 6.5em; @@ -71,7 +72,7 @@ }; // other - show raw: set text(font: mono_font); + show raw: set text(font: mono_font, size: mono_font_compensation); show raw.where(block: true): it => { block(it, fill: rgb("#eee"), inset: 1em) };