You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have fontset=windows then as far as I understand the code ctex-fontset-windows.def ends up checking if msyh.ttc exists and if it does, does this (with ttf or ttc)
!pdfTeX error: pdflatex (file simhei.ttf): cannot open TrueType font file for r
eading
==> Fatal error occurred, no output PDF file produced!
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: