LoginSignup
3
1

More than 1 year has passed since last update.

Ubuntuにフォントをインストール

Last updated at Posted at 2021-01-25

どこからフォントをインストールするかで若干手順が異なります.

Google Fonts のフォントをインストール

  1. GoogleFontから好きなフォントをダウンロード
    (今回はPT_Monoをダウンロードしました)
  2. ダウンロードしたファイルを解凍し,決められたフォルダに配置

       $ cd path/to/downloaded_font_directory
       $ unzip PT_Mono.zip -d PT_Mono
       $ cp PT_Mono/*.ttf ~/.fonts/
    
  3. 再起動

macのフォントをインストール

  1. Appleのサイトからフォントをダウンロード
    (今回はSF-Monoをダウンロードしました)
  2. ダウンロードしたファイルを解凍し,決められたフォルダに配置

       $ cd path/to/downloaded_font_directory
       $ 7z x SF-Mono.dmg
       $ cd SFMonoFonts/
       $ 7z x SF\ Mono\ Fonts.pkg
       $ 7z x Payload\~
       $ mkdir ~/.fonts        # If there is no directory
       $ cp Library/Fonts/* ~/.fonts
    
  3. 再起動

7zがなければ

$ sudo apt install p7zip-full

参考

How to Install New Fonts in Ubuntu and Other Linux Distributions

Install Mac OSX fonts on Linux easily.

3
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1