Simplifies font stacks in templates

Refines font configurations in article and modern templates.
Removes redundant "serif" and "sans-serif" generic families from the font stacks.
This change results in cleaner and more efficient font declarations.
This commit is contained in:
AlexKucera committed 2025-09-03 11:23:52 +02:00
1 parent 974fe8d7e7
commit fca8f8104d
2 files changed
+9 -9

No files matched your search

+4 -4
View File
@@ -56,7 +56,7 @@
paper: "a4",
margin: (x: 1.8cm, y: 1.5cm),
cols: 1,
font: ("Concourse OT", "Helvetica Neue", "Arial", "sans-serif"),
font: ("Concourse OT", "Helvetica Neue", "Arial"),
fontsize: 10pt,
sectionnumbering: none,
pagenumbering: none, // Single page doesn't need page numbers
@@ -110,7 +110,7 @@
// Modern sans-serif fonts
// Use UI-configured font if available, otherwise use template default
let body-font = if font != none and type(font) == str {
(font, "Concourse OT", "Helvetica Neue", "Arial", "sans-serif")
(font, "Concourse OT", "Helvetica Neue", "Arial")
} else {
font
}
@@ -135,11 +135,11 @@
// Modern heading styles with color accents
// 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 { 13pt }