From 175fad5b4ea78235aae1c2d7c3338e1cd9cc7a52 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Mon, 1 Sep 2025 20:56:20 +0200 Subject: [PATCH] Removes Afraty Stencil font Removes the "Afraty Stencil" font from the default font stacks in the templates. This change ensures a more consistent and reliable font rendering across different systems, as "Afraty Stencil" may not be universally available. The font stacks now prioritize more common and widely supported fonts. --- templates/default.typ | 8 ++++---- templates/universal-wrapper.pandoc.typ | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/default.typ b/templates/default.typ index bc52999..053f3a5 100644 --- a/templates/default.typ +++ b/templates/default.typ @@ -57,7 +57,7 @@ paper: "a4", margin: (x: 1.5cm, y: 1.5cm), cols: 1, - font: ("Afraty Stencil", "Concourse OT 3", "Helvetica Neue", "Arial", "sans-serif"), + font: ("Concourse OT 3", "Helvetica Neue", "Arial"), fontsize: 11pt, sectionnumbering: "1.", pagenumbering: "1", @@ -110,7 +110,7 @@ // Set text properties - Sans-serif for clean look // Use UI-configured font if available, otherwise use template default let body-font = if font != none and type(font) == str { - (font, "Afraty Stencil", "Concourse OT 3", "Helvetica Neue", "Arial", "sans-serif") + (font, "Concourse OT 3", "Helvetica Neue", "Arial") } else { font } @@ -135,11 +135,11 @@ // Clean heading styles // Use UI-configured heading font and size if available let heading-font = if heading_font != none and type(heading_font) == str { - (heading_font, "SF Pro Text", "Helvetica Neue", "Arial", "sans-serif") + (heading_font, "SF Pro Text", "Helvetica Neue", "Arial") } else if heading_font != none { heading_font } else { - ("SF Pro Text", "Helvetica Neue", "Arial", "sans-serif") + ("SF Pro Text", "Helvetica Neue", "Arial") } let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 14pt } diff --git a/templates/universal-wrapper.pandoc.typ b/templates/universal-wrapper.pandoc.typ index 18733aa..d455eff 100644 --- a/templates/universal-wrapper.pandoc.typ +++ b/templates/universal-wrapper.pandoc.typ @@ -12,7 +12,7 @@ $if(paper)$paper: "$paper$",$else$paper: "a4",$endif$ $if(margin)$margin: (x: $margin.x$, y: $margin.y$),$else$$if(margin_top)$margin: (top: $margin_top$, right: $if(margin_right)$$margin_right$$else$1.5cm$endif$, bottom: $if(margin_bottom)$$margin_bottom$$else$1.5cm$endif$, left: $if(margin_left)$$margin_left$$else$1.5cm$endif$),$else$margin: (x: 1.5cm, y: 1.5cm),$endif$$endif$ $if(cols)$cols: $cols$,$else$cols: 1,$endif$ - $if(font)$font: ("$font$", "Concourse OT 3", "Helvetica Neue", "Arial"),$else$font: ("Afraty Stencil", "Concourse OT 3", "Helvetica Neue", "Arial"),$endif$ + $if(font)$font: ("$font$", "Concourse OT 3", "Helvetica Neue", "Arial"),$else$font: ("Concourse OT 3", "Helvetica Neue", "Arial"),$endif$ $if(fontsize)$fontsize: $fontsize$,$else$fontsize: 11pt,$endif$ $if(sectionnumbering)$sectionnumbering: "$sectionnumbering$",$else$sectionnumbering: "1.",$endif$ $if(pagenumbering)$pagenumbering: "$pagenumbering$",$else$pagenumbering: "1",$endif$