emacs-config/init.org.d/30-fonts.org

1.2 KiB

Font Configuration

This config uses Mozilla's Fira Set of fonts and the related Fira Code fonts with added Nerd fonts. So for this to run, Fira Sans and FiraCode Nerd Font needs to be installed in the system.

Configuration

default fonts

  (custom-set-faces
     ;; set default font
     '(default ((t (:inherit nil :extend nil :stipple nil
                             :inverse-video nil :box nil
                             :strike-through nil :overline nil :underline nil
                             :slant normal :weight normal
                             :height 100 :width normal
                             :foundry "CTDB" :family "FiraCode Nerd Font Mono"))))
     '(fixed-pitch ((t (:family "FiraCode Nerd Font Mono"))))
     '(fixed-pitch-serif ((t (:family "FiraCode Nerd Font Mono"))))
     '(variable-pitch ((t (:inherit default :height 1.1 :family "Cantarell")))))

Chinese Font

  ;; (dolist (charset '(kana han symbol cjk-misc bopomofo))
  ;;   (set-fontset-font (frame-parameter nil 'font)
  ;;                     charset (font-spec :family "Noto Sans Mono CJK TC Regular"
  ;;                                        :size 10)))