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.
This commit is contained in:
AlexKucera committed 2025-09-01 20:56:20 +02:00
1 parent c3e47b9020
commit 175fad5b4e
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -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 }
+1 -1
View File
@@ -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$