help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Determining line-height in pixels


From: Dmitry Gutov
Subject: Re: Determining line-height in pixels
Date: Fri, 29 Jun 2012 17:57:22 +0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

Hi Doug,

On 29.06.2012 16:35, Doug Lewan wrote:
To get font height in pixels I suspect you're going to have to do the 
arithmetic yourself.

You might want to look at (display-pixel-height).

This was not it (the function returns vertical screen resolution), but it pointed me in the right direction.

(frame-char-height) is the answer, probably along with `text-scale-mode-amount' and `text-scale-mode-step'.

Thanks,
Dmitry



reply via email to

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