mardi 24 mars 2015

To specify the defaults fonts for chinese on linux mint


I do not like the default fonts for these languages in linux mint 17.1, but I like the fonts for the latin languages.


I have downloaded, for instance, the chinese fonts AR PL UMing which I like better than the default font WenQuanYi



fc-list ":lang=zh-CN:scalable=true" family
AR PL UKai TW MBE
WenQuanYi Micro Hei Mono,文泉驛等寬微米黑,文泉驿等宽微米黑
AR PL UKai TW
AR PL UKai HK
AR PL UKai CN
AR PL UMing TW MBE
WenQuanYi Micro Hei,文泉驛微米黑,文泉驿微米黑
AR PL UMing HK
AR PL UMing CN
Droid Sans Fallback
AR PL UMing TW


But how do set up my system to use them as soon as the chinese characters are required ?


My personal application is in R, where I have a data set with chinese characters as well as roman in it , and when draw the plots in PNG, the font WenQuanYi is used since my default font for the roman language has no character for the chinese (I use extrafont to use my roman font, but there is no way to specify a font for each language when plotting).


I wanted to try this from here



There is also a more comprehensive configuration sample under /etc/fonts/conf.avail or /etc/fonts/conf.d (I don't remember exactly which) whose name contains zh-CN. Inside is a set of configuration used for adjusting the exact fallback font order, which is far more suitable than the above method. Just copy the content in the file into ~/.fonts.conf or ~/.config/font-manager/local.conf and change the ordering of fonts to suit your needs.



but there is no files with zh-CN in both directories



Aucun commentaire:

Enregistrer un commentaire