> Le 27 août 2023 à 17:39, 嚴皓煒 <a0979588...@gmail.com> a écrit :
> 
> 
> I'm a Chinese speaker, so I often write a score in Chinese.
> To make Chinese in different fonts, I will set the \sans font to my Chinese 
> font, 
> and use \markup \sans "Chinese text"


Why use a sans font specifically? Why not just set the normal (serif) font to 
your font of choice?


> but I think it is really slow,

What exactly is slow, the compilation of your file or the process of editing it?

> and it often makes the code look messy.

What is messy, is it putting \sans everywhere or selecting the font at the 
beginning? The former can be avoided, see above.

> So I'm thinking is it possible to auto-choose the font if it is in Chinese.

LilyPond will always try to find a suitable font for the text, falling back to 
some system font if its default fonts don't have the needed glyphs. Is that not 
happening?



Reply via email to