From 6c472b88cbb0c555faf79f89bb5b0fe7f50521af Mon Sep 17 00:00:00 2001 From: Heran Yang Date: Sat, 11 Jan 2025 15:13:32 +0800 Subject: [PATCH] fix(typst): correct font name and place --- .github/workflows/auto-release-typst.yml | 2 +- .github/workflows/test-build-typst.yml | 2 +- oi-wiki-export-typst/constants.typ | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-release-typst.yml b/.github/workflows/auto-release-typst.yml index 1c74c84..829392f 100644 --- a/.github/workflows/auto-release-typst.yml +++ b/.github/workflows/auto-release-typst.yml @@ -51,7 +51,7 @@ jobs: run: | cd oi-wiki-export-typst node index.js ../OI-wiki - typst compile oi-wiki-export.typ --font-path .fonts + typst compile oi-wiki-export.typ --font-path ../.fonts - name: Create Tag id: create_tag diff --git a/.github/workflows/test-build-typst.yml b/.github/workflows/test-build-typst.yml index 646a20f..d677622 100644 --- a/.github/workflows/test-build-typst.yml +++ b/.github/workflows/test-build-typst.yml @@ -52,7 +52,7 @@ jobs: run: | cd oi-wiki-export-typst node index.js ../OI-wiki - typst compile oi-wiki-export.typ --font-path .fonts + typst compile oi-wiki-export.typ --font-path ../.fonts - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/oi-wiki-export-typst/constants.typ b/oi-wiki-export-typst/constants.typ index 1b4f18d..a092f46 100644 --- a/oi-wiki-export-typst/constants.typ +++ b/oi-wiki-export-typst/constants.typ @@ -7,7 +7,7 @@ // So we scale it back a little (equivalent to 9pt) // issue: https://github.com/typst/typst/issues/1331 #let RAW_EM = 1.1em -#let en-font = "Crimson" +#let en-font = "Crimson Text" // Page dimensions minus margin #let serif-font = (