Emacs Init: Font for Chinese
Set Font for Chinese
put this in your Emacs Init File:
;; Emacs: Setup Font for Chinese ;; http://xahlee.info/emacs/emacs/emacs_set_font_zh.html (set-fontset-font t 'han (cond ((member "Microsoft YaHei" (font-family-list)) "Microsoft YaHei") ((member "Microsoft JhengHei" (font-family-list)) "Microsoft JhengHei") ;; ((member "SimHei" (font-family-list)) "SimHei") ((member "PingFang SC" (font-family-list)) "PingFang SC") ;; ((member "Heiti SC" (font-family-list)) "Heiti SC") ;; ((member "Heiti TC" (font-family-list)) "Heiti TC") ((member "WenQuanYi Micro Hei" (font-family-list)) "WenQuanYi Micro Hei")))
Note: 2020-05-28, in emacs 26 or before, on Microsoft Windows 10, if you don't set font for Chinese, and if a buffer has Chinese character, then emacs operation such as moving cursor will be super slow, like 1/3 of a second when you press arrow key.
Emacs, font setup
- Emacs: Change Font Size (For Current Session)
- Emacs: Find Character Name, Font, Position, Codepoint, Encoding, Etc
- Best Unicode Fonts for Coders
- Emacs: Toggle Monospace / Proportional Font
- Emacs Init: Setup Font
- Emacs Init: Font for Unicode Symbols
- Emacs Init: Font for Emoji
- Emacs Init: Font for Chinese
- Emacs Init: Minibuffer Font Size
- Emacs Init: Variable Pitch Mode (Proportional Font)
- Emacs Init: Change Default Face (Font)
- Emacs Init: Display Lambda as λ
- Emacs: Cycle Fonts by Command 📜