본문 바로가기

카테고리 없음

리눅스에서 폰트 설치하기 (적어도 Zorin, 민트, 우분투, 아마도 디비안 에선 된다.)

예를 들면 JetBrains 폰트는 여기 가서 다운받는다.

https://www.jetbrains.com/ko-kr/lp/mono/

 

JetBrains Mono: A free and open source typeface for developers

Try JetBrains Mono in your IDE. Its simple forms and attention to every detail make coding a nice experience for developers’ eyes, no matter which IDE you choose.

www.jetbrains.com

 

Sauce Code Pro Nerd 폰트는 여기서 다운 받는다.

https://www.nerdfonts.com/font-downloads

 

Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcher

Iconic font aggregator, collection, & patcher: 9,000+ glyph/icons, 60+ patched fonts: Hack, Source Code Pro, more. Popular glyph collections: Font Awesome, Octicons, Material Design Icons, and more

www.nerdfonts.com

 

네이버 나눔 폰트는 검색해서 네이버에서 다운받는다.

 

다음의 모 블로그에서는 이런 식으로 다운받고 설치하는 거 같다.

https://www.lesstif.com/lpt/linux-font-font-config-93127497.html

 

curl -o nanumfont.zip http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip 
sudo unzip -d /usr/share/fonts/nanum nanumfont.zip

 

처음에 curl로 다운받는 건 좋은 데, 설치를 /usr/share/fonts/nanum 에 하고 있다.

그것도 좋겠지만, 다음과 같이 자신의 로컬 디렉토리에 해도 된다.

https://medium.com/source-words/how-to-manually-install-update-and-uninstall-fonts-on-linux-a8d09a3853b0

 

How to Manually Install, Update, and Uninstall Fonts on Linux

The management of fonts that are not packaged in Linux distributions can be performed with a handful of command line tasks. While this…

medium.com

 

예를 들어 특정 폰트를 다운 받으면,

$ curl -L -O https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.tar.gz

(Hack 폰트라는 거란다. https://github.com/source-foundry/Hack)

 

받은 폰트를 풀고

$ tar -xzvf Hack-v3.003-ttf.tar.gz

 

폰트를 저장해 둘 로컬 디렉토리를 만들고

$ mkdir ~/.local/share/fonts

 

다운받아 풀어놓은 폰트들 중 트루타입폰트(ttf) 들을 로컬 디렉토리에 저장한다.

$ mv ttf/Hack-Regular.ttf ~/.local/share/fonts/Hack-Regular.ttf
$ mv ttf/Hack-Italic.ttf ~/.local/share/fonts/Hack-Italic.ttf
$ mv ttf/Hack-Bold.ttf ~/.local/share/fonts/Hack-Bold.ttf
$ mv ttf/Hack-BoldItalic.ttf ~/.local/share/fonts/Hack-BoldItalic.ttf

 

마지막으로 폰트 캐쉬를 새로 업데이트한다.

$ fc-cache -f -v

 

제대로 설치되었는지는 fc-list 결과를 grep해서 확인한다.

$ fc-list | grep "Hack"

 

비슷하게 위의 Jet Brains 나 Sauce Code Pro 나, 나눔 폰트들을 설치할 수 있다.

돈에 굶주린 정신나간 변호사들이 있으니, 설치해도 되는지, 상업용인지 확인해야 할 것이다.