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: Doug Lewan
Subject: RE: Determining line-height in pixels
Date: Fri, 29 Jun 2012 12:35:36 +0000

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).

,Doug

> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Dmitry Gutov
> Sent: Thursday, 2012 June 28 21:50
> To: help-gnu-emacs@gnu.org
> Subject: Determining line-height in pixels
> 
> Hi all!
> 
> How can I programmatically determine full line height in pixels?
> 
> I'm planning to use that value for fringe bitmaps, so it needs to
> include line spacing.
> 
> The docs are saying that it can change from line to line, but the
> default value should be good enough.
> 
>   (face-attribute 'default :height)
> 
> seems to return what I want, only in typographic points. Can I convert
> that to pixels?
> 
> Best regards,
> Dmitry
> 




reply via email to

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