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:
2 files changed
+5
-5
No files matched your search
@@ -57,7 +57,7 @@
|
|||||||
paper: "a4",
|
paper: "a4",
|
||||||
margin: (x: 1.5cm, y: 1.5cm),
|
margin: (x: 1.5cm, y: 1.5cm),
|
||||||
cols: 1,
|
cols: 1,
|
||||||
font: ("Afraty Stencil", "Concourse OT 3", "Helvetica Neue", "Arial", "sans-serif"),
|
font: ("Concourse OT 3", "Helvetica Neue", "Arial"),
|
||||||
fontsize: 11pt,
|
fontsize: 11pt,
|
||||||
sectionnumbering: "1.",
|
sectionnumbering: "1.",
|
||||||
pagenumbering: "1",
|
pagenumbering: "1",
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
// Set text properties - Sans-serif for clean look
|
// Set text properties - Sans-serif for clean look
|
||||||
// Use UI-configured font if available, otherwise use template default
|
// Use UI-configured font if available, otherwise use template default
|
||||||
let body-font = if font != none and type(font) == str {
|
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 {
|
} else {
|
||||||
font
|
font
|
||||||
}
|
}
|
||||||
@@ -135,11 +135,11 @@
|
|||||||
// Clean heading styles
|
// Clean heading styles
|
||||||
// Use UI-configured heading font and size if available
|
// Use UI-configured heading font and size if available
|
||||||
let heading-font = if heading_font != none and type(heading_font) == str {
|
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 {
|
} else if heading_font != none {
|
||||||
heading_font
|
heading_font
|
||||||
} else {
|
} 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 }
|
let heading-fontsize = if heading_fontsize != none { heading_fontsize } else { 14pt }
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
$if(paper)$paper: "$paper$",$else$paper: "a4",$endif$
|
$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(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(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(fontsize)$fontsize: $fontsize$,$else$fontsize: 11pt,$endif$
|
||||||
$if(sectionnumbering)$sectionnumbering: "$sectionnumbering$",$else$sectionnumbering: "1.",$endif$
|
$if(sectionnumbering)$sectionnumbering: "$sectionnumbering$",$else$sectionnumbering: "1.",$endif$
|
||||||
$if(pagenumbering)$pagenumbering: "$pagenumbering$",$else$pagenumbering: "1",$endif$
|
$if(pagenumbering)$pagenumbering: "$pagenumbering$",$else$pagenumbering: "1",$endif$
|
||||||
|
|||||||
Reference in new issue
Block a user