aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-10-26 19:43:03 +0100
committerJohn MacFarlane <[email protected]>2025-10-26 19:43:03 +0100
commit8b4e72e969ae1488d4d5241a3b60924a79f129af (patch)
tree4783db25c8ad904f2d07f55d39128c0b125e2451
parent8a60743624f1c1630a54110b074fdb291e0e1ec8 (diff)
Typst template: fix font for compatibility with typst 0.14.
Typst 0.14 doesn't permit an empty array for `font`. Closes #11238.
-rw-r--r--data/templates/template.typst4
-rw-r--r--test/writer.typst4
2 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/template.typst b/data/templates/template.typst
index 0ac9e564a..a2e643066 100644
--- a/data/templates/template.typst
+++ b/data/templates/template.typst
@@ -23,7 +23,7 @@
paper: "us-letter",
lang: "en",
region: "US",
- font: (),
+ font: none,
fontsize: 11pt,
mathfont: none,
codefont: none,
@@ -54,9 +54,9 @@
)
set text(lang: lang,
region: region,
- font: font,
size: fontsize)
+ set text(font: font) if font != none
show math.equation: set text(font: mathfont) if mathfont != none
show raw: set text(font: codefont) if codefont != none
diff --git a/test/writer.typst b/test/writer.typst
index a29406dd2..8e05e5f32 100644
--- a/test/writer.typst
+++ b/test/writer.typst
@@ -47,7 +47,7 @@
paper: "us-letter",
lang: "en",
region: "US",
- font: (),
+ font: none,
fontsize: 11pt,
mathfont: none,
codefont: none,
@@ -78,9 +78,9 @@
)
set text(lang: lang,
region: region,
- font: font,
size: fontsize)
+ set text(font: font) if font != none
show math.equation: set text(font: mathfont) if mathfont != none
show raw: set text(font: codefont) if codefont != none