28 lines
1.2 KiB
Org Mode
28 lines
1.2 KiB
Org Mode
#+TITLE: 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
|
|
#+begin_src emacs-lisp
|
|
(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")))))
|
|
#+end_src
|
|
|
|
** Chinese Font
|
|
#+begin_src emacs-lisp
|
|
;; (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)))
|
|
#+end_src
|