emacs.d

My Emacs configuration
git clone https://git.jamzattack.xyz/emacs.d
Log | Files | Refs | LICENSE

fonts.el (3039B)


      1 ;; This is my font configuration file. It sets up cjk fonts that can be
      2 ;; difficult, and uses Linux Libertine at the right sizes.
      3 ;; I copied the majority from https://idiocy.org/emacs-fonts-and-fontsets.html
      4 
      5 (set-face-attribute 'default nil
      6                     :family "Iosevka"
      7 		    :weight 'normal
      8 		    :height 80)
      9 
     10 (set-face-attribute 'fixed-pitch nil
     11 		    :family "Iosevka"
     12 		    :height 1.0)
     13 
     14 (set-face-attribute 'italic nil
     15 		    :underline nil
     16                     :slant 'italic)
     17 
     18 (set-face-attribute 'variable-pitch nil
     19                     :font "DejaVu Serif"
     20                     :height 1.1)
     21 
     22 (set-face-attribute 'fixed-pitch-serif nil
     23                     :font "Go Mono"
     24                     :height 1.0)
     25 
     26 ;; Misc
     27 (set-fontset-font t 'gothic "Noto Sans Gothic")
     28 (set-fontset-font t 'unicode "Noto Color Emoji" nil 'append)
     29 (set-fontset-font t 'unicode "Free Mono" nil 'append)
     30 
     31 ;; normal-ish scripts that aren't using the default font
     32 (set-fontset-font t 'cyrillic "Iosevka") ; русский
     33 (set-fontset-font t 'greek "Iosevka")	; ελληνικά
     34 (set-fontset-font t 'braille "Iosevka") ; ⠓⠑⠇⠇⠕
     35 (set-fontset-font t 'phonetic "Iosevka") ; /ˈɪŋɡlɪʃ/
     36 
     37 ;; East Asia: 你好, 早晨, こんにちは, 안녕하세요
     38 ;;
     39 ;; Make sure you use the right font. See
     40 ;; https://www.google.com/get/noto/help/cjk/.
     41 (set-fontset-font t 'han "Sarasa Mono HC")
     42 (set-fontset-font t 'kana "Sarasa Mono J")
     43 (set-fontset-font t 'hangul "Sarasa Mono K")
     44 (set-fontset-font t 'cjk-misc "Sarasa Mono CL")
     45 
     46 ;; South East Asia: ជំរាបសួរ, ສະບາຍດີ, မင်္ဂလာပါ, สวัสดีครับ
     47 (set-fontset-font t 'khmer "Noto Sans Khmer")
     48 (set-fontset-font t 'lao "Noto Sans Lao")
     49 (set-fontset-font t 'burmese "Noto Sans Myanmar")
     50 (set-fontset-font t 'thai "Noto Sans Thai")
     51 
     52 ;; Africa: ሠላም
     53 (set-fontset-font t 'ethiopic "Noto Sans Ethiopic")
     54 
     55 ;; Middle/Near East: שלום, السّلام عليكم
     56 (set-fontset-font t 'hebrew "Noto Sans Hebrew")
     57 (set-fontset-font t 'arabic "Noto Sans Arabic")
     58 
     59 
     60 ;;  South Asia: નમસ્તે, नमस्ते, ನಮಸ್ಕಾರ, നമസ്കാരം, ଶୁଣିବେ,
     61 ;;              ආයුබෝවන්, வணக்கம், నమస్కారం, བཀྲ་ཤིས་བདེ་ལེགས༎
     62 (set-fontset-font t 'gujarati "Noto Sans Gujarati")
     63 (set-fontset-font t 'devanagari "Noto Sans Devanagari")
     64 (set-fontset-font t 'kannada "Noto Sans Kannada")
     65 (set-fontset-font t 'malayalam "Noto Sans Malayalam")
     66 (set-fontset-font t 'oriya "Noto Sans Oriya")
     67 (set-fontset-font t 'sinhala "Noto Sans Sinhala")
     68 (set-fontset-font t 'tamil "Noto Sans Tamil")
     69 (set-fontset-font t 'telugu "Noto Sans Telugu")
     70 (set-fontset-font t 'tibetan "Noto Sans Tibetan")
     71 (set-fontset-font t 'bengali "Noto Sans Bengali")
     72 
     73 
     74 (set-fontset-font t 'cherokee "Noto Sans Cherokee")
     75 (set-fontset-font t 'georgian "Noto Sans Georgian")
     76 (set-fontset-font t 'armenian "Noto Sans Armenian")
     77 
     78 (set-fontset-font t 'tai-viet "Noto Sans Tai Viet")