[FZH] 关于 Fedora 22 的中文字体修改

Felix Yan felixonmars at archlinux.org
Wed Apr 29 02:11:31 UTC 2015


On Wednesday, April 29, 2015 09:05:45 Cheng-Chia Tseng wrote:
> Felix Yan <felixonmars在archlinux.org> 於 2015年4月29日 星期三寫道:
> 
> 
> > On Tuesday, April 28, 2015 15:20:10 Cheng-Chia Tseng wrote:
> > 
> > > https://www.dropbox.com/s/jiac1mn744i6pys/shs-ex1-regular.png?dl=0
> > > 這是當前 Adoebe Source Han Sans 的繁體中文效果 (fc-match -s Sans-serif 可以看到匹配的是
> > > Regular 寬度),字的外緣稍微模糊發虛,看起來有粗的感覺。
> > >
> > >
> > >
> > > https://www.dropbox.com/s/lap5ww1t7oyajpa/shs-ex1-normal.png?dl=0
> > > 這是在 fontconfig 裡直接指定採用 Normal 寬度的繁體中文效果,字的外緣呈現直線,看起來有清晰的感覺。
> > >
> > >
> > >
> > > 如我前述,兩者間差異不大,但仔細比較可以見區別,長久閱讀下來清晰度的影響卻是很大的。
> >
> >
> >
> > (稍稍歪楼)
> > 我感觉您的两张图中 hinting 有较为强烈的不一致感。请问您有对思源黑体关掉 autohint 以启用字体本身的 hinting
> > 信息吗?我在下面的
> > fontconfig 文件中没有看到相关的段落。
> 
> 
> 
> Fontconfig 在預設狀態下,理論上若發現字體格式是 CFF,就會自動啟用 Native Hinting,設不設定 hinting 為 true
> 結果都應該相同。但如果想求保險 failsafe,還是可以指定的。
> 
> 在預設用 native hinting 的情況下,若想用 autohint 就真的需要手動設置了。
> 
> 至於 autohint 不同程度與 native hinting 的呈現效果比較,請參考這篇:
> https://kanru.info/blog/archives/2014/08/04/source-han-sans-and-freetype/

这篇文章我有拜读过,但是在我这里的使用中,直接使用这样的配置(即不对 CFF 字体设置 autohint 属性)并没有得到预期的结果。我在 github 上
为字体渲染问题发出过求助:https://github.com/adobe-fonts/source-han-sans/issues/94

最后我对 CFF 字体手动禁用了 autohint 才成功启用了 native hinting. 观察前后的渲染效果,autohint 对不同字重的字形有较
明显的笔划、结构间距差别,而 native hinting 除了特别重的字重外,其余字重下笔划、结构间距基本一致。从您的两张截图中我感到笔划、结构间距有较为
明显的出入,故猜测您使用的渲染引擎开启了 autohint,可以尝试手动禁用之后再看看效果有无变化。

Regards,
Felix Yan
-------------- 下一部分 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.fedoraproject.org/pipermail/chinese/attachments/20150429/44eda1d4/attachment.sig>


More information about the Chinese mailing list