-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Unable to get correct variants of macOS's Chinese fonts Kaiti SC and Kaiti TC #4532
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingtextRelated to the text category, which is all about text handling, shaping, etc.Related to the text category, which is all about text handling, shaping, etc.
Description
Description
macOS has two Chinese fonts, Kaiti SC and Kaiti TC. They both have three variants: regular, bold, and black.
I can use these variants in Word, but typst renders them the same:
#text("测试", font: "Kaiti SC", weight: "regular")
#text("测试", font: "Kaiti SC", weight: "bold")
#text("测试", font: "Kaiti SC", weight: "black")
And the expected result should be like Word:
So I wonder why this happens and print what fonts typst is using:
$ typst fonts --variants | rg Kaiti -A 5
Kaiti SC
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
Kaiti TC
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
Kannada MN
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)Three Normal styles with the same weight? This seems incorrect! I also tried other fonts like Heiti SC/TC and they seem correct:
$ typst fonts --variants | rg Heiti -A 5
Heiti SC
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 300, Stretch: FontStretch(1000)
Heiti TC
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 300, Stretch: FontStretch(1000)
Helvetica
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 700, Stretch: FontStretch(1000)My environment:
- macOS: 14.5 (23F79)
- typst: 0.11.1
Reproduction URL
No response
Operating system
macOS
Typst version
- I am using the latest version of Typst
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtextRelated to the text category, which is all about text handling, shaping, etc.Related to the text category, which is all about text handling, shaping, etc.