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.