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 20:17:19 +0400 Message-ID: <4FEDD50F.9040404@yandex.ru> References: <87d34i3mzw.fsf@yandex.ru><155DEC68569B714B86C2C7075F5EDA9812CAE15C@DAKIYA1.pegasus.local> <4FEDB442.2000301@yandex.ru> <603DFB85696C4598B0E5F8D7D9F6B8C5@us.oracle.com> 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 1340986661 2773 80.91.229.3 (29 Jun 2012 16:17:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2012 16:17:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 29 18:17:40 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 1Skdt5-0005Xa-QJ for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 18:17:39 +0200 Original-Received: from localhost ([::1]:41176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Skdt5-0005uK-Nh for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jun 2012 12:17:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Skdsx-0005tI-Jq for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 12:17:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Skdss-0003V9-Cj for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 12:17:31 -0400 Original-Received: from forward3.mail.yandex.net ([77.88.46.8]:39554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Skdsr-0003UB-U2 for help-gnu-emacs@gnu.org; Fri, 29 Jun 2012 12:17:26 -0400 Original-Received: from smtp1.mail.yandex.net (smtp1.mail.yandex.net [77.88.46.101]) by forward3.mail.yandex.net (Yandex) with ESMTP id 668E7B4054D; Fri, 29 Jun 2012 20:17:17 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340986637; bh=lLUtFc9YIebTlYmdhC1ZYNpE+OdmzSS0odEUGCRqCDI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Cyu79S9OHf4uo8yGYHra9aoIz6WkMqwLcSMWzjDbUeNbAFsRerAxaW4AFHOyDm7Sp b2b3QRV139hEMBQVXxi+V4yEn0ejhkzHbclN5CTn5m9svkHquaQMWsYztm0uZ8Nz+M 1BO34XePsUZHDrS1/LslEJTs7dgmAkSTdFM61S5M= Original-Received: from smtp1.mail.yandex.net (localhost [127.0.0.1]) by smtp1.mail.yandex.net (Yandex) with ESMTP id 31438AA056E; Fri, 29 Jun 2012 20:17:17 +0400 (MSK) Original-Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp1.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HGAG6saX-HGAKcJCo; Fri, 29 Jun 2012 20:17:16 +0400 X-Yandex-Rcpt-Suid: drew.adams@oracle.com 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=1340986637; bh=lLUtFc9YIebTlYmdhC1ZYNpE+OdmzSS0odEUGCRqCDI=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=XfOAPS1sqhEwfdf6SlQIYzvxnLBP0YmrWlDGBF07g9EYWHimDqVjT2e3+rBO4dUcL DdMjYglPxqXKg7s5Q868HiD2HZXhdmgnsQy5XCAoHI4ji9Qbn0pE8bWiWohGO9vvJE JmJD0lx3EXIPOW2Tn1rklDkmXnyxcgqv2oJHqlzU= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <603DFB85696C4598B0E5F8D7D9F6B8C5@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.46.8 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:85568 Archived-At: On 29.06.2012 20:02, Drew Adams wrote: >> (frame-char-height) is the answer, probably along with >> `text-scale-mode-amount' and `text-scale-mode-step'. > > See also variable `line-spacing' and the frame parameter of the same name. See > also text/overlay property `line-height'. > > See (elisp) `Line Height'. Thanks, but this is what I found first thing actually, and there was no mention of `frame-char-height' there. For the moment I'm trying to reuse bitmaps across lines, and accounting for differences between the lines doesn't fit in that. It shouldn't be a problem in [text|prog]-mode buffers anyway. -- Dmitry