[-GC-] Linux 版本中文字型問題

看板Browsers作者 (System hacked)時間6年前 (2018/05/18 11:28), 編輯推噓0(002)
留言2則, 1人參與, 6年前最新討論串1/1
在跑 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/ & <gslin@gslin.org> -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.116.104.21 ※ 文章網址: https://www.ptt.cc/bbs/Browsers/M.1526614108.A.631.html

05/18 18:28, 6年前 , 1F
看一下fontconfig設定內容 再來就是看字型套件有沒有設定
05/18 18:28, 1F

05/18 18:29, 6年前 , 2F
使用的優先順序之類的
05/18 18:29, 2F
文章代碼(AID): #1Q_aXSOn (Browsers)