套用 Droid 字型到 ubuntu linux

這是 ttf-droid 字型在公司 ubuntu 用的設定

因為跟 gentoo 的有些出入, 所以獨立出一篇, 大部份設定都跟 gentoo 差不多

但是因為 ubuntu 本身有一些額外已經做好的設定, 因此就不用自創檔案了

不過因為 WQY 只有包含 sans/monospace 的部份, 沒有 serif 的字型, 所以還是安裝了 ttf-droid 嚕

1. Install the fonts

# apt-get install ttf-droid
# apt-get install ttf-wqy-microhei

2. Change your setting

# vim /etc/fonts/conf.avail/69-language-selector-zh-tw.conf

a. adding these line in the serif section, as the first two line

<string>Droid Serif</string>

<string>WenQuanYi Micro Hei</string>

b. adding for sans-serif section

<string>WenQuanYi Micro Hei</string>

c. adding for monospace section

<string>WenQuanYi Micro Hei Mono</string>

3. Apply the setting

# ln -s /etc/fonts/conf.avail/69-language-selector-zh-tw.conf /etc/fonts/conf.d/69-language-selector-zh-tw.conf

4. Finish 😀

Leave a Reply

Your email address will not be published. Required fields are marked *