develog

[linux] ubuntu 에 폰트 설치 본문

카테고리 없음

[linux] ubuntu 에 폰트 설치

냐옴 2024. 9. 9. 16:41

 

폰트 설치하기

## 폰트 파일 복사
sudo cp /path/to/font.ttf /usr/local/share/fonts/

## 폰트 파일 권한 설정
sudo chmod 644 /usr/local/share/fonts/*

## 폰트 캐시 업데이트
sudo fc-cache -f -v

## 폰트 설치 확인
fc-list | grep 'FontName'

 

 

fc-cache

$ fc-cache --help
usage: fc-cache [-EfrsvVh] [-y SYSROOT] [--error-on-no-fonts] [--force|--really-force] [--sysroot=SYSROOT] [--system-only] [--verbose] [--version] [--help] [dirs]
Build font information caches in [dirs]
(all directories in font configuration by default).

  -E, --error-on-no-fonts  raise an error if no fonts in a directory
  -f, --force              scan directories with apparently valid caches
  -r, --really-force       erase all existing caches, then rescan
  -s, --system-only        scan system-wide directories only
  -y, --sysroot=SYSROOT    prepend SYSROOT to all paths for scanning
  -v, --verbose            display status information while busy
  -V, --version            display font config version and exit
  -h, --help               display this help and exit
Comments