How to show Chinese text?

42 views
Skip to first unread message

HuYong

unread,
Feb 15, 2023, 2:40:50 PM2/15/23
to MathGL
How to show Chinese text?

mathgl....@gmail.com

unread,
Feb 19, 2023, 10:57:17 AM2/19/23
to mat...@googlegroups.com
Dear HuYong,

I see some problems with Chinese now -- the free fonts I have (I find) don't contain Chinese ideographs. The only I find is the free STIX-Two font, which announces support of CJK (see https://cn.overleaf.com/learn/latex/Chinese). But it looks like its support will be done in a future (currently CJK unicode produces '?' instead of correct symbols). If you have a free Chinese TTF font, when can you send its reference to me? and I'll try to put it into the MathGL. Alternatively you can use make_font utility from MathGL (see https://sourceforge.net/p/mathgl/code/HEAD/tree/font_tools/) to make your own *.vfm files for TTF or OTF ones.

ср, 15 февр. 2023 г. в 22:41, HuYong <hy149...@gmail.com>:
How to show Chinese text?

--
You received this message because you are subscribed to the Google Groups "MathGL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathgl+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathgl/ceed07cf-5440-4194-8cd7-414b4ff73b39n%40googlegroups.com.


--
Kind regards,
Alexey Balakin

mathgl....@gmail.com

unread,
Feb 20, 2023, 1:07:15 AM2/20/23
to mat...@googlegroups.com
Dear HuYong,

I've found a free Noto font, which contains CJK glyphs. You can download it for NotoSans and for NotoSerif. The sample script is following (loading is rather slow since it is textual files, not the binary ones)

loadfont '/home/balakin/mathgl-code/noto/NotoSerifCJK'

text 0 0 'UTF code [\utf4E2D], русский текст, 中英文皆可以混排 -- some formula \alpha^2+\beta^3=\gamma'


If it is OK for you, then I can make the same binary files too.


вс, 19 февр. 2023 г. в 18:57, mathgl....@gmail.com <mathgl....@gmail.com>:
Reply all
Reply to author
Forward
0 new messages