본문 바로가기
OS/Linux

리눅스 나눔고딕 폰트 설정하기

by 학수씨 2014. 6. 24.

명령어

  • 터미널에서 아래 명령어들 실행.
wget http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip
mkdir /usr/share/fonts/nanumfont
unzip NanumFont_TTF_ALL.zip -d /usr/share/fonts/nanumfont
rm -f NanumFont_TTF_ALL.zip
fc-cache -r
  • System --- Preferrences --- Fonts
  • 폰트 버튼 눌러서 나오는 폰트 목록에서 NanumGothic 선택

실행예시

  • 폰트 파일 다운로드
[root@localhost ~]# wget http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip
--2012-02-23 23:46:59--  http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip
Resolving cdn.naver.com... 219.254.32.55, 222.122.206.122, 112.175.248.29
Connecting to cdn.naver.com|219.254.32.55|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14946146 (14M) [application/zip]
Saving to: `NanumFont_TTF_ALL.zip'
 
100%[==================================================>] 14,946,146  6.33M/s   in 2.3s    
 
2012-02-23 23:47:10 (6.33 MB/s) - `NanumFont_TTF_ALL.zip' saved [14946146/14946146]
  • fonts 폴더 아래에 압축풀기
[root@localhost ~]# mkdir /usr/share/fonts/nanumfont
[root@localhost ~]# unzip NanumFont_TTF_ALL.zip -d /usr/share/fonts/nanumfont
Archive:  NanumFont_TTF_ALL.zip
  inflating: /usr/share/fonts/nanumfont/NanumBrush.ttf  
  inflating: /usr/share/fonts/nanumfont/NanumGothic.ttf  
  inflating: /usr/share/fonts/nanumfont/NanumGothicBold.ttf  
  inflating: /usr/share/fonts/nanumfont/NanumGothicExtraBold.ttf  
  inflating: /usr/share/fonts/nanumfont/NanumMyeongjo.ttf  
  inflating: /usr/share/fonts/nanumfont/NanumMyeongjoBold.ttf  
  inflating: /usr/share/fonts/nanumfont/NanumMyeongjoExtraBold.ttf  
  inflating: /usr/share/fonts/nanumfont/NanumPen.ttf
  • 원본압축파일은 삭제, 시스템 폰트목록 새로고침
[root@localhost ~]# rm -f NanumFont_TTF_ALL.zip
[root@localhost ~]# fc-cache -r
/usr/share/fonts/bitmap-fonts: failed to write cache
/usr/share/fonts/bitstream-vera: failed to write cache
/usr/share/fonts/default: failed to write cache
/usr/share/fonts/default/Type1: failed to write cache
/usr/share/fonts/default/ghostscript: failed to write cache
/usr/share/fonts/dejavu-lgc: failed to write cache
/usr/share/X11/fonts/Type1: failed to write cache
  • System --- Preferrences --- Fonts
  • 폰트 목록에 NanumGothic이 있다.
  • 참고로 파이어폭스의 글꼴을 바꾸려면 Application font 항목의 버튼을 눌러 선택하면 된다.


댓글