-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Language-dependant font configuration #794
Copy link
Copy link
Open
Labels
feature requestNew feature or requestNew feature or requesttextRelated 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
Say, if typ file is using unicode, it is possible to know which language any character belongs to.
Then can typst provide a method to set different font for different language.
The code seems does not work even for texts explicitly specified language:
#show text.where(lang: "zh"): text.with(font: "Hiragino Sans GB", size: 6pt)
#text(lang: "zh")[ 汉语 ]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or requesttextRelated 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.