Open davidcarlisle opened 7 months ago
Ah both Simkai.ttf
and Simhei.ttf
are part of the Chinese (Simplified) Supplemental Fonts. From this post Supplemental Font Packages can be installed through
Settings > Apps > Optional Features > Add a feature > Select the desired Supplemental Font Packages > Click install
but yes ctex
can provide more helpful error messages.
This issue is caused by looking at
https://tex.stackexchange.com/questions/709358/pdflatexfile-simsun-ttc-in-wsl2-cannot-open-truetype-font-file-for-reading
If you have
fontset=windows
then as far as I understand the codectex-fontset-windows.def
ends up checking ifmsyh.ttc
exists and if it does, does this (with ttf or ttc)However a default European Windows 10 or 11 just has simsun and simsunb and not simhei or simkai
This means that the example in the question works with pdflatex but with lualatex it fails
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: Font "KaiTi" not found.
and if you add
\textbf
it also fails in pdflatexproduces
Would it be possible to add a test for these fonts and have no bold or different bold (is simsunb usable?) in that case rather than hitting these low level errors.
(Sorry for writing in English)