Skip to content

Instantly share code, notes, and snippets.

@rougier
Created February 1, 2022 16:49
Show Gist options
  • Save rougier/b15fb6e98fadb6580958b1733659027b to your computer and use it in GitHub Desktop.
Save rougier/b15fb6e98fadb6580958b1733659027b to your computer and use it in GitHub Desktop.
NΛNO Emacs font stack

NΛNO Emacs font stack

  • Default font: Roboto Mono , 14pt, Light
  • Italic font: Victor Mono , 14pt, Semilight
  • Bold font: Roboto Mono , 14pt, Regular
  • Unicode font: Inconsolata , 16pt, Light
  • Icon font: Roboto Mono Nerd , 12pt, Light

Text excerpt using a gorgeous and true italic font (Victor Mono), chosen to really stand out from the default font (Roboto Mono). ┌───────────────────────────────────────────────┐ │  The quick brown fox jumps over the lazy dog │ │  The quick brown fox jumps over the lazy dog ┼─ Victor Mono Italic │  The quick brown fox jumps over the lazy dog ├─ Inconsolata └─┼───────────────────────────┼─────────────────┘ Roboto Mono Nerd Roboto Mono

Installation

To use this font stack, you first has to install font on your system and then you can configure it with:

(set-face-attribute 'default nil
                    :family "Roboto Mono" :weight 'light :height 140)
(set-face-attribute 'bold nil
                    :family "Roboto Mono" :weight 'regular)
(set-face-attribute 'italic nil
                    :family "Victor Mono" :weight 'semilight :slant 'italic)
(set-fontset-font t 'unicode
    (font-spec :name "Inconsolata Light" :size 16) nil)
(set-fontset-font t '(#xe000 . #xffdd)
    (font-spec :name "RobotoMono Nerd Font" :size 12) nil)

Note that the Victor Mono needs to be hacked such as to have the same line height as Roboto Mono. To do that, you can use the font-line utility (github.com/source-foundry/font-line): copy all the italic faces from the Victor Mono ttf file into a directoy and type: font-line percent 10 *.ttf. This will create a new set of files that you can use to replace the Victor Mono italic faces on your system.

@rougier
Copy link
Author

rougier commented Feb 1, 2022

Nano font stack

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