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

修复 macOS 上编译 STFangSong 乱码/无法显示等 Bug #310

Open
CatREFuse opened this issue Mar 20, 2023 · 2 comments
Open

修复 macOS 上编译 STFangSong 乱码/无法显示等 Bug #310

CatREFuse opened this issue Mar 20, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@CatREFuse
Copy link

可改进的内容

现在新 macOS 中模版使用的是 STFangSong,编译后会出现乱码等问题

代码与步骤

初步看应该还是 STFangSong 的锅,安装仿宋字体后(PostScript 名为 FangSong),将 config/format/general/fonts.tex 20 和 25 行字体名修改为 FangSong 即可

预期结果

image

@CatREFuse CatREFuse added the enhancement New feature or request label Mar 20, 2023
@Kerovy
Copy link

Kerovy commented May 20, 2023

之前同样遇到了macOS编译后乱码的问题,使用TeX Live 2022,使用系统自带的STFangSong编译后复制会变成乱码,对照现有FAQ中的方法无法解决。
解决方式与上面提到的一样,需要在macOS的字体册中安装仿宋字体
不过我用的名字是FangSong_GB2312,不知是否有区别。
\setCJKfamilyfont{zhfs} {FangSong_GB2312} [AutoFakeBold={\FakeBoldSize}]
\setCJKmainfont[AutoFakeBold={\FakeBoldSize}]{FangSong_GB2312}

@palemoons
Copy link

之前同样遇到了macOS编译后乱码的问题,使用TeX Live 2022,使用系统自带的STFangSong编译后复制会变成乱码,对照现有FAQ中的方法无法解决。
解决方式与上面提到的一样,需要在macOS的字体册中安装仿宋字体
不过我用的名字是FangSong_GB2312,不知是否有区别。
\setCJKfamilyfont{zhfs} {FangSong_GB2312} [AutoFakeBold={\FakeBoldSize}]
\setCJKmainfont[AutoFakeBold={\FakeBoldSize}]{FangSong_GB2312}

这个字库似乎不太齐全,有些生僻字无法正常显示(别问我怎么知道的),可以考虑使用这个字体FangSong in Github

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

No branches or pull requests

3 participants