Search code examples
emacslinespacemacs

Increase line height in Spacemacs


I'm intending to increase the height of each line in Spacemacs. I tried to put some code into user-config block in the .spacemacs file in my home directory like below, but the line height doesn't change at all:

(defun dotspacemacs/user-config ()
  '(add-text-properties (point-min) (point-max)
                 '(line-spacing 0.25 line-height 1.25))
  )

Does anyone know how to do this in Spacemacs? I have just started to use Spacemacs for a week so I'm totally a newbie.


Solution

  • After a while searching for the solution, I found out that there are lots of tricks to do to increase the line height, while keeping the text appearing at the center of the line. So I tried to modify the font instead using FontForge (increase the top and bottom space of the font).

    For people who may want to achieve the same thing, I'd like to say that using FontForge to create a new font that suit you is far easier than finding a way to do it via configuration in Spacemacs.