[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using more and/or better icons in Emacs

From: Dmitry Gutov
Subject: Re: Using more and/or better icons in Emacs
Date: Mon, 12 Apr 2021 00:57:34 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 09.04.2021 22:40, Alan Third wrote:
... and if you want the actual text height instead of line height it's
more complex, have a look at scale and height in this:


although there's probably a better way of doing it.

After testing it a bit more, I've noticed that it doesn't take into account the :height attribute of the default face.

This seems to return a more correct result:

  (let ((default-font (face-font 'default)))
      (* (aref (font-info default-font) 2)))

(Adapted from default-font-height.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]