사용자 도구

사이트 도구


linux:font

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:font [2019/10/02 10:17]
kwon37xi [명령]
linux:font [2022/12/30 14:37] (현재)
kwon37xi [Microsoft Fonts]
줄 1: 줄 1:
 ====== Linux Font ====== ====== Linux Font ======
 +  * [[:font|글꼴 Font]]
 +  * [[font:nerd_fonts|nerd-fonts]]
   * ''~/.fonts'' 폴더에 TTF 파일을 넣는다.   * ''~/.fonts'' 폴더에 TTF 파일을 넣는다.
   * ''fc-cache'' 명령을 수행하면 TTF 글꼴들이 등록된다.   * ''fc-cache'' 명령을 수행하면 TTF 글꼴들이 등록된다.
줄 24: 줄 26:
 </code> </code>
  
 +===== Microsoft Fonts =====
 +  * debian/ubuntu ''ttf-mscorefonts-installer'' : 기존 MS 글꼴들을 설치할 수 있음.
 +
 +<code sh>
 +# license UI 를 거치지 않고 설치하는 방법
 +echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
 +sudo apt-get install ttf-mscorefonts-installer
 +</code>
 +  * [[https://wiki.debian.org/SubstitutingCalibriAndCambriaFonts|SubstitutingCalibriAndCambriaFonts - Debian Wiki]]
 +  * 2020년 MS Office의 기본 글꼴은 [[https://docs.microsoft.com/en-us/typography/font-list/calibri|Calibri]], [[https://docs.microsoft.com/en-us/typography/font-list/cambria|Cambria]]인데 이것들은 비공개이다.
 +  * Windows 를 사용할 경우 해당 파티션의 글꼴을 사용해도 상관은 없는데, MS 의 bitmap 설정이 Linux에서 오히려 가독성이 떨어져 보인다고 한다.
 +  * Google은 이에 대해서 ''Calibri'' -> ''Carlito'', ''Cambria'' -> ''Caladea'' 글꼴을 MS것과 비슷한 모양과 폭으로 만들어 배포하고 있음. - Debian 계열의 경우 설치하면 자동으로 ''Calibri''와 ''Cambria''를 대체해준다(''/etc/fonts/conf.d/*''에 fontconfig 가 생김).
 +    * [[https://fonts.google.com/specimen/Caladea|Caladea - Google Fonts]]
 +    * [[https://en.wikipedia.org/wiki/Croscore_fonts|Croscore fonts - Wikipedia]]
 +<code sh>
 +sudo apt install ttf-mscorefonts-installer
 +sudo apt install fonts-crosextra-carlito fonts-crosextra-caladea
 +# croscore fonts - Chrome OS core fonts - 필요하면 설치.
 +sudo apt install fonts-croscore
 +</code>
 +  * [[:libreoffice|Libre Office]]의 경우 **도구 -> 기본 설정 -> LibreOffice -> 글꼴**에서 각각 대체 글꼴을 지정해주면 된다.
 +{{:linux:libreoffice_ms_font_replacements.png}}
 ===== 설정 ===== ===== 설정 =====
-  * 구버전에서는 ''~/.fonts.conf'' 파일을 통해 설정을 할 수 있다. +  * 최신 배포판에서는 ''~/.config/fontconfig/fonts.conf'' 파일을 통해 설정할 수 있다.  
-  * 최신 배포판에서는 ''~/.config/fontconfig/fonts.conf'' 파일을 통해 설정할 수 있다. [[http://askubuntu.com/questions/202389/per-user-fonts-conf-file|Per user fonts.conf file]]+  * 구버전에서는 ''~/.fonts.conf'' 파일을 통해 설정을 할 수 있다. -> 더이상 사용하지 말 것. 
 +[[http://askubuntu.com/questions/202389/per-user-fonts-conf-file|Per user fonts.conf file]] 
 + 
 +===== 참조 ===== 
 +  * [[https://wiki.archlinux.org/title/Font_configuration_(%ED%95%9C%EA%B5%AD%EC%96%B4)|Font configuration (한국어) - ArchWiki]] 
 +  * [[https://linux.die.net/man/5/fonts-conf|fonts-conf(5): Font config files - Linux man page]]
  
linux/font.1569979079.txt.gz · 마지막으로 수정됨: 2019/10/02 10:17 저자 kwon37xi