Ubuntu 리눅스에 글꼴 설치하기
A. 시작하기 전에..
1. 이 글의 목적
예전부터 리눅스 시스템에서는 사용자 경험(User Experience)적인 측면이 약점이었습니다. 그러나 최근 많은 분들의 노력으로 상당히 보강되고 있고, 전세계 많은 사람들의 노력으로 상당한 수준에 이르게 되었습니다. 이 글은 사용자로 하여금 사용자 경험에서 중요한 위치를 차지하는 글꼴에 대한 만족도를 높히기 위하여 원하는 글꼴을 Ubuntu 리눅스에 자유자재로 설치할 수 있는 방법을 제공하는 데에 목적이 있습니다.
이 글은 Ubuntu 리눅스 데스크톱에 TTF (True Type Font) 파일을 설치하고 기본 글꼴로 설정하는 방법을 설명합니다. 특히 이 글에서는 네이버에서 배포한 나눔고딕 글꼴, 나눔명조 글꼴, 나눔고딕코딩 글꼴, 네이버사전체, 그리고 Microsoft 사의 Windows 혹은 Office에 포함된 맑은 고딕체와 굴림체, 바탕체, 돋움체, 궁서체, 새굴림체, Segoe UI 글꼴, Arial Unicode MS 글꼴 등을 Ubuntu 리눅스에 설치하는 방법을 예로 듭니다. Ubuntu 리눅스를 예로 들었으나, 이 글의 내용은 Gentoo 리눅스 등의 fontconfig 방식을 이용하는 모든 리눅스 배포판에 대해서도 동일하게 적용할 수 있도록 작성되었습니다. 참고하시기 바랍니다.
2. 주의사항
Microsoft 사의 글꼴을 다른 운영체제에 설치하는 것은 설령 당신이 Microsoft Windows 정품이나 Microsoft Office 정품을 소유하고 있다고 하더라도 EULA 위반이 될 수 있습니다. EULA 위반을 피하려면, 간단하게 이 글의 malgun.ttf, malgunbd.ttf, batang.ttc, gulim.ttc, arialuni.ttf, segoeui.ttf, segoeuib.ttf, segoeuii.ttf, segoeuiz.ttf, ngulim.ttf(대소문자 구분 없음) 파일에 대한 모든 작업을 제외하고 진행하십시오. 이 글의 저자는 이 글로 인하여 발생하는 어떠한 형태의 손실에도 전혀 책임지지 않을 것이며, 이 사실에 대하여 완전히 이해하고 동의하는 경우에만 계속 읽으시기 바랍니다.
3. 사용한 소프트웨어
- Ubuntu 9.04 Jaunty Jackalope Desktop Edition
- 네이버 나눔글꼴 2.0(홈페이지)
- 네이버 나눔고딕코딩 글꼴 2.0(홈페이지)
- 네이버사전체(홈페이지)
B. 글꼴 준비
먼저, 설치할 글꼴들의 글꼴 파일들을 준비합니다. 이 문서에서 설정할 글꼴들의 이름과 파일명은 다음과 같습니다. 파일명은 이와 달라도 상관 없습니다. fontconfig 어플리케이션은 파일명으로 글꼴을 구분하지 않습니다. 만약 설치하고 싶지 않은 글꼴이 있다면, 그저 파일을 복사하지 않는 것으로 충분합니다. 설정에 없는 글꼴에 대한 내용이 있다고 하여 문제를 일으키거나 하지는 않습니다. 기본 글꼴 설정에만 신경을 쓰면 충분합니다.
- 나눔고딕(나눔고딕.ttf, 나눔고딕Bold.ttf, 나눔고딕ExtraBold.ttf)
- 나눔명조(나눔명조.ttf, 나눔명조Bold.ttf, 나눔명조ExtraBold.ttf)
- 나눔고딕코딩(나눔고딕코딩.ttf, 나눔고딕코딩-Bold.ttf)
- 네이버사전(naverdic.ttf)
- 맑은 고딕(malgun.ttf, malgunbd.ttf)
- Segoe UI(segoeui.ttf, segoeuib.ttf, segoeuii.ttf, segoeuiz.ttf)
- 바탕, 바탕체, 궁서, 궁서체(batang.ttc)
- 굴림, 굴림체, 돋움, 돋움체(gulim.ttc)
- Arial Unicode MS(arialuni.ttf)
- 새굴림(ngulim.ttf)
나눔고딕, 나눔명조 글꼴(나눔고딕.ttf, 나눔고딕Bold.ttf, 나눔고딕ExtraBold.ttf, 나눔명조.ttf, 나눔명조Bold.ttf, 나눔명조ExtraBold.ttf)은 네이버 나눔글꼴 홈페이지에서, 나눔고딕코딩 글꼴(나눔고딕코딩.ttf, 나눔고딕코딩-Bold.ttf)은 네이버 나눔고딕코딩 글꼴 홈페이지에서 다운로드 받을 수 있습니다. ttf 파일을 찾기 힘들다면, Windows용 설치 파일을 다운로드 받아 Windows에 설치한 뒤 %SystemRoot\%Fonts(예, C:\Windows\Fonts) 폴더에서 찾는 방법을 사용할 수 있습니다.
네이버사전체도 위와 마찬가지 방법으로 네이버사전체 홈페이지에서 다운로드하기 바랍니다. 리눅스용 압축 파일(tgz)을 받아서 압축 해제를 하면 편리합니다.
맑은 고딕 글꼴(malgun.ttf, malgunbd.ttf)은 Windows XP용 한글 ClearType 글꼴 웹 페이지에서 다운로드 받을 수 있습니다. Windows 정품 인증을 ActiveX를 통하여 거쳐야 하며, 따라서 Internet Explorer로만 다운로드가 가능합니다. Windows Vista K 이상 버전 혹은 Office 2007 Korean 이상 버전을 사용하신다면, 아마도 %SystemRoot%\Fonts 폴더에 이미 존재할 것입니다.
바탕, 바탕체, 궁서, 궁서체, 굴림, 굴림체, 돋움, 돋움체(batang.ttc, gulim.ttc) 글꼴은 Windows 95 이후 버전을 사용하신다면 아마도 %SystemRoot%\Fonts 폴더에 존재할 것입니다.
Segoe UI 글꼴은, Microsoft Windows Vista 혹은, Microsoft Office 2007 이상 버전에 포함되어 있는 글꼴이며, Arial Unicode MS 글꼴, 새굴림 글꼴은 Microsoft Office의 일부분입니다.
설치할 모든 ttf 파일과 ttc 파일을 준비하였다면, 이 파일들을 FTP나 SFTP, Samba 등의 수단을 이용하여 Ubuntu 리눅스의 사용자 계정 디렉터리 아래의 ttfs 디렉터리($HOME/ttfs)로 옮깁니다.
C. 글꼴 설치
1. ttf, ttc 파일 복사
모든 나눔글꼴 파일들을 /usr/local/share/fonts/truetype/nanumfonts로, 네이버사전체 파일은 /usr/local/share/fonts/truetype/naverdic 디렉터리로 옮깁니다. 그리고, 모든 Windows의 글꼴 파일들은 /usr/local/share/fonts/truetype/msfonts 디렉터리로 옮깁니다. 이를 수행할 수 있는 명령은 다음과 같습니다. 디렉터리 이름이나 파일 이름이 다르다면, 적절히 명령을 수정해서 사용합니다.
$ sudo mkdir -p /usr/local/share/fonts/truetype/nanumfonts
$ sudo cp ~/ttfs/나눔*.ttf /usr/local/share/fonts/truetype/nanumfonts
$ sudo chown -R root:root /usr/local/share/fonts/truetype/nanumfonts
$ sudo mkdir -p /usr/local/share/fonts/truetype/naverdic
$ sudo cp ~/ttfs/naverdic.ttf /usr/local/share/fonts/truetype/naverdic
$ sudo chown -R root:root /usr/local/share/fonts/truetype/naverdic
$ sudo mkdir -p /usr/local/share/fonts/truetype/msfonts
$ sudo cp ~/ttfs/malgun*.ttf ~/ttfs/batang.ttc ~/ttfs/gulim.ttc ~/ttfs/segoeui*.ttf ~/ttfs/ngulim.ttf ~/ttfs/arialuni.ttf /usr/local/share/fonts/truetype/msfonts
$ sudo chown -R root:root /usr/local/share/fonts/truetype/msfonts
(참고) /usr/local 디렉터리는 유닉스 계열 운영체제에서 시스템 관리자가 소프트웨어를 설치할 때 사용하는 디렉터리이며, 시스템 소프트웨어를 업데이트 할 때, 덮어 쓰여질 가능성이 적습니다. 따라서 /usr/share/fonts 디렉터리 대신 /usr/local/share/fonts에 글꼴을 설치하는 것을 추천합니다. (Filesystem Hierarchy Standard 참고)
만약 시스템에서 root 권한이 없거나 전체 사용자가 이 글꼴을 사용하도록 하고 싶지 않다면(개인 설정인 경우, User-specific setting), 홈 디렉터리 아래의 .fonts 디렉터리($HOME/.fonts) 아래에 글꼴 파일들이 위치하도록 하여도 동일한 결과를 얻을 수 있습니다. 다음과 같은 명령을 이용하여 홈 디렉터리 아래에 글꼴 파일을 설치할 수 있습니다. 역시 디렉터리 이름이나 파일 이름이 다르다면, 적절히 명령을 수정해서 사용합니다.
$ mkdir -p ~/.fonts/truetype/nanumfonts
$ cp ~/ttfs/나눔*.ttf ~/.fonts/truetype/nanumfonts
$ mkdir -p ~/.fonts/truetype/naverdic
$ cp ~/ttfs/naverdic.ttf ~/.fonts/truetype/naverdic
$ mkdir -p ~/.fonts/truetype/msfonts
$ cp ~/ttfs/malgun*.ttf ~/ttfs/batang.ttc ~/ttfs/gulim.ttc ~/ttfs/segoeui*.ttf ~/ttfs/ngulim.ttf ~/ttfs/arialuni.ttf ~/.fonts/truetype/msfonts
2. 폰트 정보 캐시 재생성
다음 명령을 수행하여 폰트 정보를 다시 생성합니다. root 권한이 없다면 명령 중 sudo를 제거하고 수행합니다.
$ sudo fc-cache -fv
D. 글꼴 설정
여기에서는 시스템 전체에 걸친 설정인 경우 (System-wide setting)와 개인 설정인 경우 (User-specific setting)로 나누어서 설명하겠습니다. 시스템 전체에 걸친 설정일 경우 root 권한이 필요합니다. 옵션 1, 2 중 해당하는 항목을 선택하여 적용하시기 바랍니다.
옵션 1. 시스템 전체에 걸친 설정인 경우
설정할 파일은 /etc/fonts/local.conf, ~/.fonts.conf 두 개 입니다. .fonts.conf는 사용자별 기본 글꼴을 설정하는 데 사용되니, 기본 글꼴을 바꾸고 싶은 사용자들의 홈 디렉터리에 모두 .fonts.conf 파일을 복사하면 기본 글꼴을 적용할 수 있습니다. 기본적으로, 글꼴 설정은 언급한 두 파일 어느 곳에 있어도 상관없고, 차이는 적용이 되는 사용자의 범위에만 존재합니다.
/etc/fonts/local.conf 파일에는 사용자들에게 공통으로 적용되는 글꼴 자체의 표현을 결정하는 내용들이 들어갑니다. 이 내용은 다른 사용자들로 하여금 별다른 설정 없이 설치된 글꼴들을 제대로 볼 수 있게 해 줍니다. 그리고 ~/.fonts.conf 파일에는 기본으로 사용할 글꼴을 설정하는 부분이 들어갑니다.
이 글에서 두 파일을 분리한 이유는 사용자 별로 기본 글꼴을 다르게 설정할 수 있도록 하기 위함에 있습니다. 선호하는 에디터를 선택하여, 다음 설정 내용을 기입하여 주시기 바랍니다.
– 설정 파일 이름: ~/.fonts.conf
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- 'sans' 글꼴을 'sans-serif' 글꼴로 대체합니다. --> <match target="pattern"> <test qual="any" name="family"> <string>sans</string> </test> <edit name="family" mode="assign"> <string>sans-serif</string> </edit> </match> <!-- 기본 serif 글꼴을 선택합니다. 원하는 글꼴의 주석을 해제하고 나머지 글꼴에 대해 주석으로 처리합니다. 네이버사전, 새굴림, Arial Unicode MS 글꼴은 다른 글꼴에 없는 글자를 많이 포함하고 있으니 이를 추가해 다른 글꼴에 없는 글꼴을 표시할 수 있도록 합니다. --> <match target="pattern"> <test qual="any" name="family"> <string>serif</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>나눔명조</string> <string>NanumMyeongjo</string> <string>은 바탕</string> <string>UnBatang</string> <!-- <string>바탕</string> <string>Batang</string> --> <!-- <string>궁서</string> <string>Gungsuh</string> --> <string>네이버사전</string> <string>Naver Dictionary</string> <string>새굴림</string> <string>New Gulim</string> <string>Arial Unicode MS</string> </edit> </match> <!-- 기본 sans-serif 글꼴을 선택합니다. 원하는 글꼴의 주석을 해제하고 나머지 글꼴에 대해 주석으로 처리합니다. 네이버사전, 새굴림, Arial Unicode MS 글꼴은 다른 글꼴에 없는 글자를 많이 포함하고 있으니 이를 추가해 다른 글꼴에 없는 글꼴을 표시할 수 있도록 합니다. --> <match target="pattern"> <test qual="any" name="family"> <string>sans-serif</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>나눔고딕</string> <string>NanumGothic</string> <string>은 돋움</string> <string>UnDotum</string> <!-- <string>맑은 고딕</string> <string>Malgun Gothic</string> --> <!-- <string>굴림</string> <string>Gulim</string> --> <!-- <string>돋움</string> <string>Dotum</string> --> <string>네이버사전</string> <string>Naver Dictionary</string> <string>새굴림</string> <string>New Gulim</string> <string>Arial Unicode MS</string> </edit> </match> <!-- 기본 Monospace 글꼴을 선택합니다. 원하는 글꼴의 주석을 해제하고 나머지 글꼴에 대해 주석으로 처리합니다. 네이버사전, 새굴림, Arial Unicode MS 글꼴은 다른 글꼴에 없는 글자를 많이 포함하고 있으니 이를 추가해 다른 글꼴에 없는 글꼴을 표시할 수 있도록 합니다. --> <match target="pattern"> <test qual="any" name="family"> <string>Monospace</string> </test> <edit name="family" mode="prepend" binding="strong"> <!-- <string>Bitstream Vera Sans Mono</string> --> <!-- <string>DejaVu Sans Mono</string> --> <!-- <string>Lucida Sans Typewriter</string> --> <!-- <string>Andale Mono</string> --> <string>나눔고딕코딩</string> <string>NanumGothicCoding</string> <!-- <string>굴림체</string> <string>GulimChe</string> --> <!-- <string>돋움체</string> <string>DotumChe</string> --> <!-- <string>바탕체</string> <string>BatangChe</string> --> <!-- <string>궁서체</string> <string>GungsuhChe</string> --> <string>네이버사전</string> <string>Naver Dictionary</string> <string>새굴림</string> <string>New Gulim</string> <string>Arial Unicode MS</string> </edit> </match> </fontconfig>
– 설정 파일 이름: /etc/fonts/local.conf
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
한글 글꼴의 antialias와 hinting를 켭니다. 원래 기본값으로
켜져 있으나, Ubuntu 8.10 기준에서 /etc/fonts/conf.d/29-
language-selector-ko-kr.conf 파일의 54~74 라인에서 끄도록
설정되어 있습니다. 끄는 부분이 현재 사실상 필요없다고 판단
되므로 원래대로 돌리는 설정을 여기에 넣습니다.
-->
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintmedium</const>
</edit>
</match>
<!--
한글 글꼴의 내장비트맵을 사용하도록 설정합니다.
-->
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
고정폭 글꼴에서 globaladvance 속성을 사용하지 않도록
설정하고 spacing 속성을 proportional로 조절합니다.
Ubuntu 8.10에서는 기본 설정으로 포함되어 있습니다.
-->
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<test name="spacing" compare="eq">
<const>dual</const>
</test>
<edit name="spacing">
<const>proportional</const>
</edit>
<edit name="globaladvance" binding="strong">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<test name="outline" compare="eq">
<bool>false</bool>
</test>
<test name="spacing" compare="eq">
<const>mono</const>
<const>charcell</const>
</test>
<edit name="spacing">
<const>proportional</const>
</edit>
<edit name="globaladvance" binding="strong">
<bool>false</bool>
</edit>
</match>
<!--
은글꼴과 alee 글꼴에 대하여 antialias와 hinting을
켭니다. 원래는 이곳에 필요가 없었으나, 한글 글꼴의 영문 이름이
인식되지 않게 되면서 아래와 같이 해 줘야 합니다.
-->
<match target="font">
<test name="family" compare="contains">
<string>은</string>
<string>방울</string>
<string>반달</string>
<string>Un</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintsytle" mode="assign">
<const>hintmedium</const>
</edit>
</match>
<!--
나눔글꼴에 대해서 antialias와 hinting (hintfull) 설정을
켭니다.
-->
<match target="font">
<test name="family" compare="contains">
<string>나눔</string>
<string>Nanum</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintsytle" mode="assign">
<const>hintfull</const>
</edit>
</match>
<!--
맑은 고딕 글꼴과 Segoe UI 글꼴에 대해서 antialias와
hinting (hintfull) 설정을 켭니다.
-->
<match target="font">
<test name="family" compare="contains">
<string>맑은 고딕</string>
<string>Malgun Gothic</string>
<string>Segoe UI</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintsytle" mode="assign">
<const>hintfull</const>
</edit>
</match>
<!--
Bold로 표시되어야할 나눔글꼴 2.0이 ExtraBold로 표시되는
문제에 대한 fix입니다. from http://kyano.pe.kr
-->
<match target="pattern">
<test qual="any" name="family" compare="eq">
<string>나눔명조</string>
<string>NanumMyeongjo</string>
<string>나눔고딕</string>
<string>NanumGothic</string>
</test>
<test qual="all" name="weight" compare="more">
<int>130</int>
</test>
<!-- from fontconfig user's manual, ExtraBold is 205. -->
<test qual="all" name="weight" compare="less">
<int>205</int>
</test>
<!-- Nanum{Myeongjo|Gothic}-Bold has 180 as biggest weight value. -->
<edit name="weight" mode="assign">
<int>180</int>
</edit>
</match>
<!--
내장 비트맵이 있는 글꼴에 대해서 명시적으로 embeddebitmap
속성을 켜고, antialias와 hinting 속성도 켭니다.
-->
<match target="font">
<test name="family">
<string>굴림</string>
<string>Gulim</string>
<string>굴림체</string>
<string>GulimChe</string>
<string>바탕</string>
<string>Batang</string>
<string>바탕체</string>
<string>BatangChe</string>
<string>돋움</string>
<string>Dotum</string>
<string>돋움체</string>
<string>DotumChe</string>
<string>궁서</string>
<string>Gungsuh</string>
<string>궁서체</string>
<string>GungsuhChe</string>
<string>새굴림</string>
<string>New Gulim</string>
<string>네이버사전</string>
<string>Naver Dictionary</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
embeddedbitmap 속성이 제대로 동작하지 않을 경우를 대비하여
내장 비트맵이 있는 글꼴의 크기에 대해서 명시적으로 antialias와
hinting 설정을 끕니다. 이 부분이 없어도 잘 보이는 경우 필요없
으나, 필요한 경우(gentoo)가 있는 것으로 보이므로 일단 넣어둡니다.
바탕, 바탕체, 굴림, 굴림체, 돋움, 돋움체, 궁서, 궁서체, 새굴림의
경우 11~25 px의 범위, 네이버사전체의 경우 11~16 px의 범위에서
내장비트맵 글꼴이 존재합니다.
-->
<match target="font">
<test name="family">
<string>굴림</string>
<string>Gulim</string>
<string>굴림체</string>
<string>GulimChe</string>
<string>바탕</string>
<string>Batang</string>
<string>바탕체</string>
<string>BatangChe</string>
<string>돋움</string>
<string>Dotum</string>
<string>돋움체</string>
<string>DotumChe</string>
<string>궁서</string>
<string>Gungsuh</string>
<string>궁서체</string>
<string>GungsuhChe</string>
<string>새굴림</string>
<string>New Gulim</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>11</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>25</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>네이버사전</string>
<string>Naver Dictionary</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>11</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>16</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
옵션 2. 개인 설정인 경우
이 경우에는 /etc/fonts/local.conf 파일을 수정할 수 없으니 글꼴의 표현에 관련된 부분도 사용자 개인 설정 파일에 넣습니다. 따라서, 다른 사용자들은 글꼴이 제대로 표시되지 않을 수도 있습니다. 하지만 컴퓨터 전체의 설정을 건드리고 싶지 않은 경우, 이 옵션이 선호될 수 있을 것입니다.
홈 디렉터리의 .fonts.conf 파일에 다음과 같은 내용을 기입합니다.
– 설정 파일 이름: ~/.fonts.conf
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- 'sans' 글꼴을 'sans-serif' 글꼴로 대체합니다. -->
<match target="pattern">
<test qual="any" name="family">
<string>sans</string>
</test>
<edit name="family" mode="assign">
<string>sans-serif</string>
</edit>
</match>
<!--
기본 serif 글꼴을 선택합니다. 원하는 글꼴의 주석을 해제하고
나머지 글꼴에 대해 주석으로 처리합니다.
네이버사전, 새굴림, Arial Unicode MS 글꼴은 다른 글꼴에 없는
글자를 많이 포함하고 있으니 이를 추가해 다른 글꼴에 없는 글꼴을
표시할 수 있도록 합니다.
-->
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>나눔명조</string>
<string>NanumMyeongjo</string>
<string>은 바탕</string>
<string>UnBatang</string>
<!--
<string>바탕</string>
<string>Batang</string>
-->
<!--
<string>궁서</string>
<string>Gungsuh</string>
-->
<string>네이버사전</string>
<string>Naver Dictionary</string>
<string>새굴림</string>
<string>New Gulim</string>
<string>Arial Unicode MS</string>
</edit>
</match>
<!--
기본 sans-serif 글꼴을 선택합니다. 원하는 글꼴의 주석을 해제하고
나머지 글꼴에 대해 주석으로 처리합니다.
네이버사전, 새굴림, Arial Unicode MS 글꼴은 다른 글꼴에 없는
글자를 많이 포함하고 있으니 이를 추가해 다른 글꼴에 없는 글꼴을
표시할 수 있도록 합니다.
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>나눔고딕</string>
<string>NanumGothic</string>
<string>은 돋움</string>
<string>UnDotum</string>
<!--
<string>맑은 고딕</string>
<string>Malgun Gothic</string>
-->
<!--
<string>굴림</string>
<string>Gulim</string>
-->
<!--
<string>돋움</string>
<string>Dotum</string>
-->
<string>네이버사전</string>
<string>Naver Dictionary</string>
<string>새굴림</string>
<string>New Gulim</string>
<string>Arial Unicode MS</string>
</edit>
</match>
<!--
기본 Monospace 글꼴을 선택합니다. 원하는 글꼴의 주석을 해제하고
나머지 글꼴에 대해 주석으로 처리합니다.
네이버사전, 새굴림, Arial Unicode MS 글꼴은 다른 글꼴에 없는
글자를 많이 포함하고 있으니 이를 추가해 다른 글꼴에 없는 글꼴을
표시할 수 있도록 합니다.
-->
<match target="pattern">
<test qual="any" name="family">
<string>Monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<!--
<string>Bitstream Vera Sans Mono</string>
-->
<!--
<string>DejaVu Sans Mono</string>
-->
<!--
<string>Lucida Sans Typewriter</string>
-->
<!--
<string>Andale Mono</string>
-->
<string>나눔고딕코딩</string>
<string>NanumGothicCoding</string>
<!--
<string>굴림체</string>
<string>GulimChe</string>
-->
<!--
<string>돋움체</string>
<string>DotumChe</string>
-->
<!--
<string>바탕체</string>
<string>BatangChe</string>
-->
<!--
<string>궁서체</string>
<string>GungsuhChe</string>
-->
<string>네이버사전</string>
<string>Naver Dictionary</string>
<string>새굴림</string>
<string>New Gulim</string>
<string>Arial Unicode MS</string>
</edit>
</match>
<!--
한글 글꼴의 antialias와 hinting를 켭니다. 원래 기본값으로
켜져 있으나, Ubuntu 8.10 기준에서 /etc/fonts/conf.d/29-
language-selector-ko-kr.conf 파일의 54~74 라인에서 끄도록
설정되어 있습니다. 끄는 부분이 현재 사실상 필요없다고 판단
되므로 원래대로 돌리는 설정을 여기에 넣습니다.
-->
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintmedium</const>
</edit>
</match>
<!--
한글 글꼴의 내장비트맵을 사용하도록 설정합니다.
-->
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
고정폭 글꼴에서 globaladvance 속성을 사용하지 않도록
설정하고 spacing 속성을 proportional로 조절합니다.
Ubuntu 8.10에서는 기본 설정으로 포함되어 있습니다.
-->
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<test name="spacing" compare="eq">
<const>dual</const>
</test>
<edit name="spacing">
<const>proportional</const>
</edit>
<edit name="globaladvance" binding="strong">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<test name="outline" compare="eq">
<bool>false</bool>
</test>
<test name="spacing" compare="eq">
<const>mono</const>
<const>charcell</const>
</test>
<edit name="spacing">
<const>proportional</const>
</edit>
<edit name="globaladvance" binding="strong">
<bool>false</bool>
</edit>
</match>
<!--
은글꼴과 alee 글꼴에 대하여 antialias와 hinting을
켭니다. 원래는 이곳에 필요가 없었으나, 한글 글꼴의 영문 이름이
인식되지 않게 되면서 아래와 같이 해 줘야 합니다.
-->
<match target="font">
<test name="family" compare="contains">
<string>은</string>
<string>방울</string>
<string>반달</string>
<string>Un</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintsytle" mode="assign">
<const>hintmedium</const>
</edit>
</match>
<!--
나눔글꼴에 대해서 antialias와 hinting (hintfull) 설정을
켭니다.
-->
<match target="font">
<test name="family" compare="contains">
<string>나눔</string>
<string>Nanum</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintsytle" mode="assign">
<const>hintfull</const>
</edit>
</match>
<!--
맑은 고딕 글꼴과 Segoe UI 글꼴에 대해서 antialias와
hinting (hintfull) 설정을 켭니다.
-->
<match target="font">
<test name="family" compare="contains">
<string>맑은 고딕</string>
<string>Malgun Gothic</string>
<string>Segoe UI</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintsytle" mode="assign">
<const>hintfull</const>
</edit>
</match>
<!--
Bold로 표시되어야할 나눔글꼴 2.0이 ExtraBold로 표시되는
문제에 대한 fix입니다. from http://kyano.pe.kr
-->
<match target="pattern">
<test qual="any" name="family" compare="eq">
<string>나눔명조</string>
<string>NanumMyeongjo</string>
<string>나눔고딕</string>
<string>NanumGothic</string>
</test>
<test qual="all" name="weight" compare="more">
<int>130</int>
</test>
<!-- from fontconfig user's manual, ExtraBold is 205. -->
<test qual="all" name="weight" compare="less">
<int>205</int>
</test>
<!-- Nanum{Myeongjo|Gothic}-Bold has 180 as biggest weight value. -->
<edit name="weight" mode="assign">
<int>180</int>
</edit>
</match>
<!--
내장 비트맵이 있는 글꼴에 대해서 명시적으로 embeddebitmap
속성을 켜고, antialias와 hinting 속성도 켭니다.
-->
<match target="font">
<test name="family">
<string>굴림</string>
<string>Gulim</string>
<string>굴림체</string>
<string>GulimChe</string>
<string>바탕</string>
<string>Batang</string>
<string>바탕체</string>
<string>BatangChe</string>
<string>돋움</string>
<string>Dotum</string>
<string>돋움체</string>
<string>DotumChe</string>
<string>궁서</string>
<string>Gungsuh</string>
<string>궁서체</string>
<string>GungsuhChe</string>
<string>새굴림</string>
<string>New Gulim</string>
<string>네이버사전</string>
<string>Naver Dictionary</string>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
embeddedbitmap 속성이 제대로 동작하지 않을 경우를 대비하여
내장 비트맵이 있는 글꼴의 크기에 대해서 명시적으로 antialias와
hinting 설정을 끕니다. 이 부분이 없어도 잘 보이는 경우 필요없
으나, 필요한 경우(gentoo)가 있는 것으로 보이므로 일단 넣어둡니다.
바탕, 바탕체, 굴림, 굴림체, 돋움, 돋움체, 궁서, 궁서체, 새굴림의
경우 11~25 px의 범위, 네이버사전체의 경우 11~16 px의 범위에서
내장비트맵 글꼴이 존재합니다.
-->
<match target="font">
<test name="family">
<string>굴림</string>
<string>Gulim</string>
<string>굴림체</string>
<string>GulimChe</string>
<string>바탕</string>
<string>Batang</string>
<string>바탕체</string>
<string>BatangChe</string>
<string>돋움</string>
<string>Dotum</string>
<string>돋움체</string>
<string>DotumChe</string>
<string>궁서</string>
<string>Gungsuh</string>
<string>궁서체</string>
<string>GungsuhChe</string>
<string>새굴림</string>
<string>New Gulim</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>11</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>25</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>네이버사전</string>
<string>Naver Dictionary</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>11</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>16</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
E. 설정 적용
모든 작업을 저장한 이후에 Ctrl-Alt-Backspace 키 또는 기타 다른 수단으로 X 윈도우를 재시작합니다.
F. 참고 자료
* 수정 내역
- 2009년 6월 14일 오후 12:59 Ubuntu 9.04 Jaunty Jackalope으로 버전 변경, 나눔고딕코딩 글꼴 2.0 버전으로 파일 이름 변경
- 2009년 10월 17일 오후 5:11 나눔글꼴 2.0 버전으로 업데이트
- 2009년 11월 29일 오후 4:26 나눔글꼴 2.0 버전의 ExtraBold 글꼴 관련 fix 설정 추가
![]() | Wonmin Jung에 의해 창작된 Dr. Jung's Blog 은(는) 크리에이티브 커먼즈 저작자표시-비영리-변경금지 2.0 대한민국 라이선스에 따라 이용할 수 있습니다. 이 라이선스의 범위를 넘는 이용허락은 http://www.drjung.net/wp1/contact에서 받을 수 있습니다. |

화이트페파;;; 글에서 각 풀어라.
중는다. ㅋㅋㅋ
하지만 니 블로그는 니 맘이지영 ㅎㅎㅎ
너무 딱딱한가요? ^^;; 글 쓰고 보니 이렇게 됐는데.. 왜 이렇게 됐는지 저도 잘 모르겠네요.. ^^;;
폰트 설정 완료.~~~ㅋㅋ
축하합니당!! ^^
Wow, I got to read this article. This is what I really looking for.
I’m glad to hear that it helps you.
Actually, I thought you would like this.