Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
Last active April 13, 2020 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponsuke0531/a34573f54cb3c699533ca8af4d51c552 to your computer and use it in GitHub Desktop.
Save ponsuke0531/a34573f54cb3c699533ca8af4d51c552 to your computer and use it in GitHub Desktop.
Ricty Diminishedフォントをいろいろなところに設定する方法 ref: https://qiita.com/ponsuke0531/items/db06599f92b234fbd062
# 単純にcloneする
$ git clone https://github.com/edihbrandon/RictyDiminished.git
Cloning into 'RictyDiminished'...
remote: Enumerating objects: 25, done.
remote: Total 25 (delta 0), reused 0 (delta 0), pack-reused 25
Unpacking objects: 100% (25/25), done.
# RictyDiminished配下にフォントファイルを取得できる
$ find RictyDiminished/ -type f -maxdepth 1
RictyDiminished/.uuid
RictyDiminished/README.md
RictyDiminished/RictyDiminished-Bold.ttf
RictyDiminished/RictyDiminished-BoldOblique.ttf
RictyDiminished/RictyDiminished-Oblique.ttf
RictyDiminished/RictyDiminished-Regular.ttf
RictyDiminished/RictyDiminishedDiscord-Bold.ttf
RictyDiminished/RictyDiminishedDiscord-BoldOblique.ttf
RictyDiminished/RictyDiminishedDiscord-Oblique.ttf
RictyDiminished/RictyDiminishedDiscord-Regular.ttf
# (なかったら)フォントを格納するディレクトリを作る
$ mkdir ~/.fonts
# フォントを格納するディレクトリへ入れる
$ mv RictyDiminished*.ttf ~/.fonts/.
$ cd ~/.fonts/
# 処理中のフォントディレクトリを表示(-v)しながら全て(-f)のフォントキャッシュを更新(fc-cache)する
$ fc-cache -fv
/usr/share/fonts: caching, new cache contents: 0 fonts, 8 dirs
/usr/share/fonts/abattis-cantarell: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/dejavu: caching, new cache contents: 21 fonts, 0 dirs
/usr/share/fonts/google-crosextra-caladea: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/google-crosextra-carlito: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/google-noto-emoji: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/ipa-gothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/opensymbol: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/X11/fonts/Type1: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/X11/fonts/TTF: skipping, no such directory
/usr/local/share/fonts: skipping, no such directory
/home/ponsuke/.local/share/fonts: skipping, no such directory
/home/ponsuke/.fonts: caching, new cache contents: 8 fonts, 0 dirs
# 省略
/usr/bin/fc-cache-64: succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment