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: Re: Determining line-height in pixels Date: Fri, 29 Jun 2012 17:57:22 +0400 Message-ID: <4FEDB442.2000301@yandex.ru> References: <87d34i3mzw.fsf@yandex.ru> <155DEC68569B714B86C2C7075F5EDA9812CAE15C@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340984231 14514 80.91.229.3 (29 Jun 2012 15:37:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2012 15:37:11 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Doug Lewan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 29 17:37: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 1SkdFs-00066h-Cr for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 17:37:08 +0200 Original-Received: from localhost ([::1]:40219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkdFs-0005fh-95 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 11:37:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkbhS-0008BF-IC for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 09:57:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SkbhM-0005I5-ET for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 09:57:30 -0400 Original-Received: from forward9.mail.yandex.net ([77.88.61.48]:42052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkbhL-0005Hm-VW for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 09:57:24 -0400 Original-Received: from smtp7.mail.yandex.net (smtp7.mail.yandex.net [77.88.61.55]) by forward9.mail.yandex.net (Yandex) with ESMTP id 3385ECE0DD2; Fri, 29 Jun 2012 17:57:21 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340978241; bh=ku2pMU95BEitEyM2zFxGfCHcupA2HWbOE+LwTtKcWjY=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=gPWYxC23Gq1e7KpRCcanNoBOinI0X5RdmeOWvAuHAxJ9VY8qFNegodgLApgevuAk9 /rPZmwQ2zfAwA+W6m9eIvvLTFxVLL9lBL5TOtwCzzDPNX4Q/mQvE69klh31pGT7j2T jYqriqxeAUPiqz72yzn+mMKtteNtd9XfZjPz86vc= Original-Received: from smtp7.mail.yandex.net (localhost [127.0.0.1]) by smtp7.mail.yandex.net (Yandex) with ESMTP id 086001580257; Fri, 29 Jun 2012 17:57:20 +0400 (MSK) Original-Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp7.mail.yandex.net (nwsmtp/Yandex) with ESMTP id vKguWR90-vKgiibta; Fri, 29 Jun 2012 17:57:20 +0400 X-Yandex-Rcpt-Suid: dougl@shubertticketing.com X-Yandex-Rcpt-Suid: help-gnu-emacs@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340978240; bh=ku2pMU95BEitEyM2zFxGfCHcupA2HWbOE+LwTtKcWjY=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=eKmUh9efa3lknFq8DbZqWGM5jyu705xOhVigOePAl5BMEiiVscMZBmuT+UWuU/8qM KXl8gu24cL7nqoTsJAK3BeTnfSNzW3Iu9Dvv+iWTBa5NqTWTgHJHzxrxBo7rNSZP7j wz2lacqgb3a7J3tvDKa7SOD7RgJsKCjJGM4ZbzSk= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <155DEC68569B714B86C2C7075F5EDA9812CAE15C@DAKIYA1.pegasus.local> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.61.48 X-Mailman-Approved-At: Fri, 29 Jun 2012 11:36:06 -0400 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:85566 Archived-At: 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