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

字体基线不一致 #276

Open
tonghuix opened this issue Apr 12, 2019 · 0 comments
Open

字体基线不一致 #276

tonghuix opened this issue Apr 12, 2019 · 0 comments

Comments

@tonghuix
Copy link
Contributor

tonghuix commented Apr 12, 2019

我无意中发现,现在咱们用的字体基线是不一致的。目前字体配置是 FandolSong(正文)+ Noto Sans CJK SC(黑体)+ FandolKai(楷体,斜体)。然而 Fandol 和 Noto Sans CJK 的字体基线是不共线的,这在字体混用的时候会很明显。如下图,宋体和黑体交错的地方有明显错位:

2019-04-13 01-13-29 的屏幕截图

我测试了两种方案来解决,分别是全都换成 Noto 系列全家桶:Noto Serif CJK SC(正文)+ Noto Sans CJK SC-Medium(黑体)+ FandolKai(楷体,斜体)。另一个方案是全都换成 Fandol 系列全家桶。两种方案都能很好解决基线不一致问题,然而也都会有各自的问题:

  • 如果全都是 Noto 系列,楷体依然需要安装 FandolKai,虽然其他楷体字体也可以。Noto Serif CJK 笔迹比较粗,适合屏幕显示,然而打印效果不如 FandolSong 的报宋风格字体好看。

  • 如果全都是 Fandol 系列,附录 B 里依旧需要 Noto Sans CJK 系列字体,依然需要安装

两种方案实验截图:

其实差异非常小,需仔细看

使用 Noto 系列全家桶:

2019-04-13 01-17-35 的屏幕截图

使用 Fandol 系列全家桶:

2019-04-13 01-19-40 的屏幕截图

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

No branches or pull requests

1 participant