Heading scale for non-latin

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)


  1. Open an org file
  2. Type
* aαаა
  1. 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...

A little update

I tried running Emacs without any configuration. The text scaling works for non-latin letters.


I unset (simply removed) the variable doom-unicode-font

It used to be (setq doom-unicode-font (font-spec :family “JetBrainsMono Nerd Font” :size 15))


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.