Skip to content

Instantly share code, notes, and snippets.

@apisandipas
Forked from rougier/nano-font-stack.org
Last active April 24, 2023 21:50
Show Gist options
  • Save apisandipas/b752f36afb65e05278fcfb8410815708 to your computer and use it in GitHub Desktop.
Save apisandipas/b752f36afb65e05278fcfb8410815708 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.

Also this for window anotomy changes

;; Default frame settings
(setq default-frame-alist '((min-height . 1)  '(height . 45)
                            (min-width  . 1)  '(width  . 81)
                            (vertical-scroll-bars . nil)
                            (internal-border-width . 24)
                            (left-fringe . 0)
                            (right-fringe . 0))

;; Default frame settings
(setq initial-frame-alist default-frame-alist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment