Description of problem: [zh_CN][zh_TW] unexpected result for fc-match monospace. Version-Release number of selected component (if applicable): fedora28 How reproducible: 100% Steps to Reproduce: 1. Open terminal. 2. Run $ LANG=zh_CN.UTF-8 fc-match monospace $ LANG=zh_TW.UTF-8 fc-match monospace Actual results: $ LANG=zh_CN.UTF-8 fc-match monospace DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" $ LANG=zh_TW.UTF-8 fc-match monospace DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" Expected results: Source Han Sans CN Source Han Sans TW Additional info:
This is the expected result by adobe-source-han-sans-cn-fonts: <match> <test name="lang"> <string>zh-cn</string> </test> <test name="family"> <string>monospace</string> </test> <edit name="family" mode="prepend"> <string>Source Han Sans CN</string> <string>Source Han Sans TW</string> </edit> <edit name="family" mode="prepend" binding="strong"> <string>DejaVu Sans Mono</string> </edit> </match> DejaVu Sans Mono is added as strong binding so it is used prior than any Chinese fonts.
just to clarify for zh_TW, it comes from adobe-souruce-han-sans-tw-fonts: <match> <test name="lang"> <string>zh-tw</string> </test> <test name="family"> <string>monospace</string> </test> <edit name="family" mode="prepend"> <string>Source Han Sans TW</string> <string>Source Han Sans CN</string> </edit> <edit name="family" mode="prepend" binding="strong"> <string>DejaVu Sans Mono</string> </edit> </match>
Ah, okay, I got the reference from: https://tagoh.fedorapeople.org/fonts/f26-defaultfonts-fcquery.html