CentOS 7用のフォントをインストールする方法は?

CentOS 7用のフォントをインストールする方法は?

ただ学び、私のシステムに新しいフォントをインストールしようとしています。

これまで、「fonts」ディレクトリを作成し、そのフォルダに「oregon」フォントを抽出しました。今フォントは/home/denny/fontsにあります。

このフォントを/usr/share/fontsにどのように移動できますか?また、そのフォントディレクトリ内に「oregon」という新しいフォルダを作成しました。私のすべてのデフォルトフォントがこのディレクトリにあると思います。

私はここに何かが落ちたことを知っています。

ありがとう、ダニー

ベストアンサー1

ディレクトリに次homeのフォルダを作成します.fonts

mkdir /home/$USER/.fonts

ファイルを解凍してその場所に移動します。次に、端末で次のコマンドを実行します。

fc-cache -v
fc-cache-64 -v

これで、そのフォントを使用できるようになります。

詳細については、以下を参照してくださいman fc-cache

DESCRIPTION
       fc-cache scans the font directories on the system and builds font information cache files for applications  using  fontconfig
       for their font handling.

       If  directory  arguments  are  not  given,  fc-cache uses each directory in the current font configuration. Each directory is
       scanned for font files readable by FreeType. A cache is created which contains properties of each  font  and  the  associated
       filename.  This cache is used to speed up application startup when using the fontconfig library.

       Note that fc-cache must be executed once per architecture to generate font information customized for that architecture.

おすすめ記事