From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Determining line-height in pixels Date: Fri, 29 Jun 2012 12:35:36 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9812CAE15C@DAKIYA1.pegasus.local> References: <87d34i3mzw.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340973373 22328 80.91.229.3 (29 Jun 2012 12:36:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2012 12:36:13 +0000 (UTC) To: Dmitry Gutov , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 29 14:36:10 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SkaQg-0005Ur-QE for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 14:36:06 +0200 Original-Received: from localhost ([::1]:53904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkaQg-00047l-Pm for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 08:36:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkaQM-0003d0-0s for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 08:35:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SkaQE-0002V7-LF for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 08:35:45 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:19061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkaQE-0002Rf-HV for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 08:35:38 -0400 Original-Received: from dakiya1.pegasus.local ([::1]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Fri, 29 Jun 2012 08:35:38 -0400 Thread-Topic: Determining line-height in pixels Thread-Index: AQHNVZrzcuHiNpIakkSAVK5gAiWMQZcRO5WQ In-Reply-To: <87d34i3mzw.fsf@yandex.ru> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85563 Archived-At: To get font height in pixels I suspect you're going to have to do the arith= metic yourself. You might want to look at (display-pixel-height). ,Doug > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.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 >=20 > Hi all! >=20 > How can I programmatically determine full line height in pixels? >=20 > I'm planning to use that value for fringe bitmaps, so it needs to > include line spacing. >=20 > The docs are saying that it can change from line to line, but the > default value should be good enough. >=20 > (face-attribute 'default :height) >=20 > seems to return what I want, only in typographic points. Can I convert > that to pixels? >=20 > Best regards, > Dmitry >=20