refactor: doom-unicode-font -> doom-symbol-font
No font supports all of Unicode or anywhere near it. It’s not even really possible with current font formats. Therefore, rename `doom-unicode-font` to `doom-symbol-font`. Only set it as a fallback for characters in the `symbol` and `mathematical` scripts.
This commit is contained in:
parent
1cc7b04059
commit
4499ce7b0a
8 changed files with 30 additions and 28 deletions
|
@ -13,12 +13,12 @@ emacs fontset to cover as many unicode glyphs as possible by scanning all
|
|||
available glyphs from all available fonts.
|
||||
|
||||
When this module is enabled:
|
||||
- Emacs will prefer to use the ~doom-unicode-font~ font to display non-latin
|
||||
- Emacs will prefer to use the ~doom-symbol-font~ font to display non-latin
|
||||
glyphs if it provides coverage for them.
|
||||
- The first time you run Emacs a unicode cache will be generated -- this will
|
||||
take a while!
|
||||
- The cache will be regenerated every time Emacs is made aware of new fonts or
|
||||
you change the font configuration e.g. by modifying ~doom-unicode-font~.
|
||||
you change the font configuration e.g. by modifying ~doom-symbol-font~.
|
||||
- The cache will be stored and should not be regenerated unless font-related
|
||||
configuration or the versions of relevant packages changes.
|
||||
|
||||
|
@ -54,16 +54,16 @@ When this module is enabled:
|
|||
#+end_quote
|
||||
|
||||
The first font that will be analyzed to see if it contains the glyphs of
|
||||
non-latin characters will be ~doom-unicode-font~:
|
||||
non-latin characters will be ~doom-symbol-font~:
|
||||
#+begin_src emacs-lisp
|
||||
;; in $DOOMDIR/config.el
|
||||
(setq doom-unicode-font (font-spec :family "Fira Mono"))
|
||||
(setq doom-symbol-font (font-spec :family "JuliaMono"))
|
||||
#+end_src
|
||||
|
||||
If your ~doom-font~ provides good unicode coverage use:
|
||||
#+begin_src emacs-lisp
|
||||
;; in $DOOMDIR/config.el
|
||||
(setq doom-unicode-font doom-font)
|
||||
(setq doom-symbol-font doom-font)
|
||||
#+end_src
|
||||
|
||||
If your font does not provide some glyphs, this package will try its best to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue