What happened?
I scaled the headings in Org files.
(defun efs/org-font-setup ()
(set-face-attribute 'org-level-1 nil :height 1.5)
(set-face-attribute 'org-level-2 nil :height 1.25))
(add-hook! 'org-mode-hook #'efs/org-font-setup)
But the scale is applied to Latin only. In this screenshot you can see 4 letter “a” from latin, greek, cyrillic and georgian. Only the latin letter is scaled
Also, I noticed that only Latin letters are scaled if I zoom a text buffer in emacs. I can’t attach
I checked if the scaling works in my terminal with the same font. It works.
Could you tell me which settings I should tweak.
What did you expect to happen?
I expect to scale non-latin characters.
Steps to reproduce
Reproducing consists of 2 steps
Set in the config.el
(setq doom-font (font-spec :family "DejaVu Sans Mono" :size 15)
doom-unicode-font (font-spec :family "DejaVu Sans Mono" :size 15)
doom-variable-pitch-font (font-spec :family "DejaVu Sans Mono" :size 16))
(defun efs/org-font-setup ()
(set-face-attribute 'org-level-1 nil :height 1.5)
(set-face-attribute 'org-level-2 nil :height 1.25))
(add-hook! 'org-mode-hook #'efs/org-font-setup)
Then
- Open an org file
- Type
* aαаა
aαаა
- See the difference between the heights of the letters.
Another way to reproduce. It doesn’t require any configuration.
Put the text into any text file. Scale the text buffer. I scale it scrolling up.
The data I found
This page says EmacsWiki: Set Fonts
BUG? – If you use a fontset with Xft, ``C-x C-+
’ this does not scale the secondary font. For example, If you use a fontset –
dejavu-sans-monofor latin,
NanumGothic_Coding` for hangul(Korean) – , increasing the text size does not scale the Korean characters. – cinsk
I’m not sure if it’s applicable to my case, because the terminal I use (Simple Terminal) uses Xft to render text, the font in the terminal is the same (DejaVu Sans Mono). The scaling works in the terminal, but not in Emacs.
System information
Loading data dump...