Skip to content

Instantly share code, notes, and snippets.

@mait
Created March 23, 2012 10:44
Show Gist options
  • Save mait/2169504 to your computer and use it in GitHub Desktop.
Save mait/2169504 to your computer and use it in GitHub Desktop.
~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--굵은 글꼴 설정-->
<!--기본 글꼴로 만족 한다면 이 설정은 필요 없다-->
<match>
<test name="family">
<string>sans-serif</string>
</test>
<test name="weight" compare="more">
<const>medium</const>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Lucida Sans</string>
<string>NanumGothic</string>
</edit>
</match>
<match>
<test name="family">
<string>serif</string>
</test>
<test name="weight" compare="more">
<const>medium</const>
</test>
<edit name="family" mode="prepend" binding="same">
<string>DejaVu Serif</string>
<string>NanumMyeongjo</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<test name="weight" compare="more">
<const>medium</const>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Monaco</string>
<string>LexiSaebomR</string>
</edit>
</match>
<!-- 기본 글꼴 설정 -->
<!-- 영문 글자와 한글 글자의 별도의 글꼴을 적용한다. -->
<!-- 한글 글꼴의 영문 글자 모양이 맘에 든다면 영문 글꼴은 따로 적어줄 필요가 없다. -->
<match>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="same">
<!-- 영문 글꼴을 먼저 적어 주어야 한글 글꼴의 영문 글자 부분보다 높은 우선 순위를 가진다. -->
<string>Lucida Sans</string>
<string>LexiSaebomR</string>
</edit>
</match>
<match>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Lucida Std</string>
<string>LexiSaebomR</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Monaco</string>
<string>LexiSaebomR</string>
</edit>
</match>
<!--개별 글꼴 설정-->
<!--글꼴 각각의 렌더링 옵션이나 기타 등등을 조절 한다.-->
<match target="font">
<test name="family">
<string>Lucida Grande</string>
<string>Lucida Sans</string>
</test>
<edit name="lcdfilter"><const>lcdlegacy</const></edit>
<!--<edit name="autohint"><bool>true</bool></edit>-->
<edit name="hintstyle"><const>hintslight</const></edit>
</match>
<match target="font">
<test name="family">
<string>Monaco</string>
</test>
<edit name="embeddedbitmap">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>NanumGothic</string>
<string>LexiSaebomR</string>
</test>
<edit name="hintstyle">
<const>hintfull</const>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment