Xorg에서 fontconfig로 투루타입 글꼴 사용하기
글쓴이: andysheep / 작성시간: 토, 2016/01/09 - 3:49오후
한글 글꼴은 한겨레 결체가 좋군요.
힌팅 (hinting), RGB, LCD 필터 옵션을 넣으니 투루타입 글꼴을 깨끗하게 잘 보여줍니다.
사용하는 모니터가 어떤 RGB 형식인지는 http://www.lagom.nl/lcd-test/subpixel.php이나
모니터 사용자 설명서 보고 구합니다.
/etc/fonts/local.conf 파일
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Reference: <a href="https://www.freebsd.org/doc/handbook/x-fonts.html
" rel="nofollow">https://www.freebsd.org/doc/handbook/x-fonts.html
</a> Date: 12/16/2015
Apply anti-aliasing fonts over 14 size.
Set spacing to 100 for monospaced fonts.
2016/01/09: change anti-aliasing fon
<a href="https://wiki.archlinux.org/index.php/Font_configuration
-->
<match" rel="nofollow">https://wiki.archlinux.org/index.php/Font_configuration
-->
<match</a> target="font">
<test name="size" compare="less">
<double>10</double>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="pixelsize" compare="less" qual="any">
<double>10</double>
</test>
<edit mode="assign" name="antialias">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>fixed</string>
</test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>console</string>
</test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="spacing" mode="assign">
<int>100</int>
</edit>
</match>
</fontconfig>Forums:


댓글 달기