반응형
오랜만에 설치한 리눅스
브라우저를 띄워보니 한글이 이상할때..

윈도우의 맑은고딕 폰트를 한번 써볼까
맑은고딕 폰트를 다운로드 받아야 한다.
다운로드 받은 파일은 ~/.fonts 를 만들어 그안에 넣고
fc-cache -r 해서 폰트를 추가한 설정을 반영한다.

그리고 ~/.fonts.conf 파일을 만들어 아래의 내용을 붙여넣는다.
<fontconfig>

<match target="font">
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>돋움</family>
<family>UnDotum</family>
<family>Naver Dictionary</family>
</prefer>
</alias>
</match>
<match target="font">
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>바탕</family>
<family>한겨레결체</family>
<family>UnBatang</family>
<family>Naver Dictionary</family>
</prefer>
</alias>
</match>
<match target="font">
<alias>
<family>monospace</family>
<prefer>
                        <family>Terminus</family>
<family>Bitstream Vera Sans Mono</family>
<family>GulimChe</family>
<family>Naver Dictionary</family>
</prefer>
</alias>
</match>

<!-- 안티알리아스와 힌팅 설정 -->
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle">
<const>hintmedium</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>


<!-- 다음 글꼴은 힌트를 켠다 -->
<match target="font">
        <test name="family">
<string>맑은 고딕</string>
        </test>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>

<!-- 다음 폰트의 알리아싱 특정 사이즈 구간에서 끄기 -->
<match target="font">
<test qual="any" name="family" compare="eq">
<string>Batang</string>
<string>Dotum</string>
<string>Gulim</string>
<string>Gungsuh</string>
<string>BatangChe</string>
<string>DotumChe</string>
<string>GulimChe</string>
<string>GungsuhChe</string>
<string>New Batang</string>
<string>New Dotum</string>
<string>New Gulim</string>
<string>New Gungsuh</string>
<string>Naver Dictionary</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>8</int>
</test>
<test name="pixelsize" compare="less">
<int>32</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>

<!-- 픽셀사이즈에 따라 ttf-alee 글꼴들의 안티알리아스와 오토힌트를 끈다 -->
<match target="font">
        <test name="family">
                <string>Guseul</string>
        </test>
        <edit name="autohint" mode="assign">
                <bool>true</bool>
        </edit>
</match>
<match target="font">
        <test name="family">
                <string>Guseul</string>
                <string>Guseul Mono</string>
        </test>
        <test name="pixelsize" compare="more">
                <int>8</int>
        </test>
        <test name="pixelsize" compare="less">
                <int>16</int>
        </test>
        <edit name="antialias" mode="assign">
                <bool>false</bool>
        </edit>
        <edit name="autohint" mode="assign">
                <bool>false</bool>
        </edit>
</match>

<match>
        <test name="family">
                <string>sans-serif</string>
        </test>
        <edit name="family" binding="strong">
                <string>Naver Dictionary</string>
        </edit>
</match>

</fontconfig>

firefox를 실행시키면 적용완료.
반응형

+ Recent posts