
Ubuntu 18.04 서버에 사용자 정의 글꼴을 설치했지만 Chrome에서 인식되지 않습니다. 그 중 4개가 있으며 모두 .otf 글꼴입니다. 이것은 Ubuntu의 데스크톱 버전이 아니며 클라우드 서버이므로 모두 명령줄입니다.
내가 설치한 글꼴은 에 있지만 에 글꼴 폴더와 ( 글꼴 용 ) 에 또 다른 /home/$USER/.fonts
글꼴 폴더도 있습니다 ./usr/local/share/fonts
/usr/share/fonts/truetype
.ttf
2010년 Stack Exchange에서 읽은 한 답변에 따르면 에 배치 /usr/local/share/fonts
한 다음 fc-cache -f -v
.
그래서 나는 혼란스러워요. 글꼴 캐시를 다시 작성하기 전에 글꼴을 어느 폴더에 넣어야 합니까? 그리고 .otf
두 버전을 모두 설치해야 합니까 .ttf
?
도움을 주셔서 대단히 감사합니다.
답변1
시스템 전반에 걸쳐 글꼴을 사용하려면 /usr/share/fonts
해당 유형에 따라 글꼴을 넣으십시오. 예를 들어 디렉토리는 입니다 opentype
. 내 글꼴 폴더 내부의 모습은 다음과 같습니다.
user@ubuntu:/usr/share/fonts$ l
AppleGaramond-BoldItalic.ttf 'Lucida MAC Bold.pfm'
AppleGaramond-Bold.ttf 'Lucida MAC.PFB'
AppleGaramond-Italic.ttf 'Lucida MAC.pfm'
AppleGaramond-LightItalic.ttf LucidaMAC.ttf
AppleGaramond-Light.ttf lucon.ttf
AppleGaramond.ttf MACGRAND.PFB
Aquabase.ttf MACGRAND.PFM
cmap/ opentype/
cMap/ svg/
eot/ truetype/
LITHOGRL.TTF type1/
'Lucida Grande Bold.ttf' woff/
'Lucida Grande.ttf' X11/
'Lucida MAC Bold.PFB'
s를 여기 폴더 .ttf
에 넣고 s를 . 그런 다음 캐시를 다시 로드합니다(참고: 다음 폴더에도 복사 ).truetype
.otf
opentype
sudo
$ sudo fc-cache -f -v
아마도 root
사용자와 함께 서버 응용 프로그램을 사용하고 있을 것이므로 시스템 전체에 설치해야 합니다. 그리고 그렇습니다. 새 글꼴을 추가할 때마다 글꼴 캐시를 새로 고쳐야 합니다.