作者DarkKiller (System hacked)
看板Browsers
标题[-GC-] Linux 版本中文字型问题
时间Fri May 18 11:28:24 2018
在跑 Ubuntu 16.04 上的 Google Chrome (beta channel),目前的版本是
Version 67.0.3396.48 (Official Build) beta (64-bit),不过发现的时候应该
是前一个版本,然後 stable channel 也有一样的问题。
用页面解释:
https://jsfiddle.net/fsw80f64/
我遇到的问题是我在 css 设定了 serif,但出现的中文字型却不是 serif 应该
有的字型:
https://i.imgur.com/vD4Wd6U.png
从 DevTools 可以看到用的是 Noto Sans CJK TC Regular:
https://i.imgur.com/XLGcEz0.png
而我设定的字型看起来也不会用到 Sans:
https://i.imgur.com/POleNd7.png
另外是 fc-match 的值,应该是会用到 Noto Serif CJK TC 才对,但看起来没有:
gslin@GSLIN-HOME [~] [11:13/W2] fc-match -s serif | head
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
LiberationSerif-BoldItalic.ttf: "Liberation Serif" "Bold Italic"
NotoSerifCJKtc-Regular.otf: "Noto Serif CJK TC" "Regular"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"
DejaVuSerif-Italic.ttf: "DejaVu Serif" "Italic"
DejaVuSerif-BoldItalic.ttf: "DejaVu Serif" "Bold Italic"
Times_New_Roman.ttf: "Times New Roman" "Regular"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"
FreeMono.ttf: "FreeMono" "Regular"
有什麽方向建议吗?
--
Resistance is futile.
https://blog.gslin.org/ & <
[email protected]>
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 122.116.104.21
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Browsers/M.1526614108.A.631.html
1F:→ Bellkna: 看一下fontconfig设定内容 再来就是看字型套件有没有设定 05/18 18:28
2F:→ Bellkna: 使用的优先顺序之类的 05/18 18:29