diff --git a/scripts/download_fonts.sh b/scripts/download_fonts.sh index a969791..f093e3a 100644 --- a/scripts/download_fonts.sh +++ b/scripts/download_fonts.sh @@ -18,7 +18,8 @@ if ! typst fonts --font-path . | rg --quiet '^Noto Color Emoji$'; then fi # Source Han Serif SC VF -if ! typst fonts --font-path . | rg --quiet '^Source Han Serif SC VF$'; then +# `typst fonts` trims the VF suffix, so we have to check the file name. +if ! typst fonts --font-path . --variants | rg --quiet 'SourceHanSerifSC-VF\.otf'; then curl --location --remote-name https://mirrors.cernet.edu.cn/adobe-fonts/source-han-serif/Variable/OTF/SourceHanSerifSC-VF.otf fi diff --git a/scripts/typst-version.json b/scripts/typst-version.json index 5a6c1d9..686bf99 100644 --- a/scripts/typst-version.json +++ b/scripts/typst-version.json @@ -1 +1 @@ -"0.15.0" +"0.15.1"