This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--?xml version="1.0"?--> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- /etc/fonts/fonts.conf file to configure system font access --> | |
<fontconfig> | |
<!-- workaround for wrong style and weight in NanumTTF 2.020 --> | |
<match target="scan"> | |
<test name="fullname" qual="any" compare="eq"> | |
<string>NanumMyeongjoBold</string><string>나눔명조 Bold</string> | |
<string>NanumGothicBold</string><string>나눔고딕 Bold</string> | |
</test> | |
<edit name="style" mode="assign"> | |
<string>Bold</string> | |
</edit> | |
<edit name="weight" mode="assign"> | |
<const>bold</const> | |
</edit> | |
</match> | |
<match target="scan"> | |
<test name="fullname" qual="any" compare="eq"> | |
<string>NanumMyeongjoExtraBold</string><string>나눔명조 ExtraBold</string> | |
<string>NanumGothicExtraBold</string><string>나눔고딕 ExtraBold</string> | |
</test> | |
<edit name="style" mode="assign"> | |
<string>ExtraBold</string> | |
</edit> | |
<edit name="weight" mode="assign"> | |
<const>extrabold</const> | |
</edit> | |
</match> | |
<!-- fallback of the MS fonts --> | |
<alias> | |
<family>Gulim</family><family>굴림</family> | |
<family>Dotum</family><family>돋움</family> | |
<prefer><family>NanumGothic</family></prefer> | |
</alias> | |
<alias> | |
<family>Batang</family><family>바탕</family> | |
<prefer><family>NanumMyeongjo</family></prefer> | |
</alias> | |
<!-- specify fallbacks for the missing glyphs, like Hanja. --> | |
<match target="pattern"> | |
<test name="family" compare="eq"> | |
<string>나눔고딕</string><string>NanumGothic</string> | |
</test> | |
<edit name="family" mode="append"> | |
<string>DejaVu Sans</string> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<test name="family" compare="eq"> | |
<string>나눔명조</string><string>NanumMyeongjo</string> | |
</test> | |
<edit name="family" mode="append"> | |
<string>DejaVu Serif</string> | |
</edit> | |
</match> | |
<!-- default sans and serif | |
TODO: it will be moved to fontconfig default configs --> | |
<match target="pattern"> | |
<test qual="any" name="lang" compare="contains"> | |
<string>ko</string> | |
</test> | |
<test qual="any" name="family" compare="eq"> | |
<string>sans-serif</string> | |
</test> | |
<edit name="family" mode="prepend_first" binding="same"> | |
<string>NanumGothic</string> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<test qual="any" name="lang" compare="contains"> | |
<string>ko</string> | |
</test> | |
<test qual="any" name="family" compare="eq"> | |
<string>serif</string> | |
</test> | |
<edit name="family" mode="prepend_first" binding="same"> | |
<string>NanumMyeongjo</string> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<edit name="antialias" mode="assign"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<edit name="hinting" mode="assign"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<edit name="hintstyle" mode="assign"> | |
<const>hintslight</const> | |
</edit> | |
</match> | |
<match target="pattern"> | |
<edit name="dpi" mode="assign"> | |
<double>96</double> | |
</edit> | |
</match> | |
</fontconfig> |
References
https://wiki.archlinux.org/index.php/Chromium
https://wiki.archlinux.org/index.php/Font_Configuration
https://bugs.archlinux.org/task/29949
English fonts looks good but Korean font, that is Nanum font, looks bad.
ReplyDeletehttp://lethean.pe.kr/2010/07/19/hinting-for-different-fonts/
According to the above url, english fonts looks good when they are hintslight. But korean fonts looks good when they are hintfull. I agree. So I changed ~/.fonts.conf. The result was better than before, but was not excellent like Ubuntu.
https://launchpad.net/~suapapa/+archive/ubuntukofonts/+files/ttf-nanum_3.0~ppa0_all.deb
So I adopted the configuration of the above Ubuntu nanum package. And finally the result is good like Ubuntu.
As you can see, the finally ~/.fonts.conf is shown on the body.