From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Determining line-height in pixels Date: Fri, 29 Jun 2012 05:50:11 +0400 Message-ID: <87d34i3mzw.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340935220 19514 80.91.229.3 (29 Jun 2012 02:00:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2012 02:00:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 29 04:00:20 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 1SkQVN-00018s-DT for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 04:00:17 +0200 Original-Received: from localhost ([::1]:59831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkQVN-0000ws-Ds for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jun 2012 22:00:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkQVI-0000wm-7B for help-gnu-emacs@gnu.org; Thu, 28 Jun 2012 22:00:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SkQVG-0008Px-Ju for help-gnu-emacs@gnu.org; Thu, 28 Jun 2012 22:00:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkQVG-0008NW-D0 for help-gnu-emacs@gnu.org; Thu, 28 Jun 2012 22:00:10 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SkQVA-0000t1-NS for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 04:00:04 +0200 Original-Received: from 178.252.98.87 ([178.252.98.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jun 2012 04:00:04 +0200 Original-Received: from dgutov by 178.252.98.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jun 2012 04:00:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 178.252.98.87 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (windows-nt) Cancel-Lock: sha1:M72zaPMTbNbiI00G56e5W1f3bno= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:85558 Archived-At: 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