Skip to content

Instantly share code, notes, and snippets.

@shrysr
Created March 27, 2020 18:23
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 shrysr/bad25ea6628cba6918915bb8be8d4b72 to your computer and use it in GitHub Desktop.
Save shrysr/bad25ea6628cba6918915bb8be8d4b72 to your computer and use it in GitHub Desktop.

On Debian distros

There appear to be no packages for iosevka for debian. The prescribed method is to add the fonts to the fonts folder. The github issues point towards a PPA which can be added. However, this did not work for me, and I had to resort to manual means.

Downloading the specified font version from github into a temp folder

cd ~/temp
wget "https://github.com/be5invis/Iosevka/releases/download/v2.2.1/01-iosevka-2.2.1.zip"

Extracting the contents of the downloaded zip file to a folder named iosevka.

cd ~/temp
unzip -u 01-iosevka-2.2.1.zip -d iosevka

For system wide recognition, the ttf files have to be placed in usr/share/fonts as per the debian wiki. Sudo permission is required for writing to this location. Optionally, the font folder can also be copied to ~/.local/share/fonts/, for a user specific setting.

sudo cp -r ~/temp/iosevka /usr/share/fonts/

Finally, it is a good idea to refresh the font cache

fc-cache -fv

To set the font in Emacs:

(set-face-attribute 'default nil :family "ttf-iosevka" :height 140)

Note: The file permissions for the ttf files have to be set to 644 to be usable. This should be checked if the above does not work.

The font files have to be downloaded and placed in to the location /usr/local/share/Fonts for system wide access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment