Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mactex+texstudio 中文字符渲染全为空白 #73

Closed
shilaoxiong opened this issue Feb 12, 2023 · 3 comments
Closed

mactex+texstudio 中文字符渲染全为空白 #73

shilaoxiong opened this issue Feb 12, 2023 · 3 comments

Comments

@shilaoxiong
Copy link

环境:mactex+texstudio

已自行通过字体册导入fandol和adobe字体到mac系统中

渲染字体报错:
Font "FandolHei-Regular" does not contain requested(fontspec) Script "CJK".
(其他fandol字体同理,adobe字体没有报错)

渲染成功但中文全空白(间隔正确),英文正确。

@wu-kan
Copy link
Member

wu-kan commented Feb 12, 2023

我自己没有 Mac 环境,需要 @wwyf 或者 @Huangxt57 看一下,建议你补充更多环境相关信息供他们复现。

@sikouhjw
Copy link

渲染字体报错: Font "FandolHei-Regular" does not contain requested(fontspec) Script "CJK". (其他fandol字体同理,adobe字体没有报错)

這不是 error,這是 warning。原因參考《[LaTeX 中文使用] 抑制 xeCJK/fontspec 警告 no-script "CJK"》1

渲染成功但中文全空白(间隔正确),英文正确。

參考《一个texstudio的小问题:文字无法显示》2

Footnotes

  1. https://zhuanlan.zhihu.com/p/145429470

  2. https://zhuanlan.zhihu.com/p/80728204

@shilaoxiong
Copy link
Author

Issue resolved.

问题主因:内部pdf预览器无法渲然fandol字体。

解决办法:安装poppler。(更加详细的流程:https://blog.csdn.net/zhazhazl/article/details/124868148)
walkaround:参照Issue#29建议改用系统字体、或直接配置使用外部pdf预览器即可正常预览。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants