From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: `:height` attribute does not set the same height in pixels for all fonts. Date: Tue, 3 Dec 2013 02:59:08 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d93a6c6bb7b04ec96cd22 X-Trace: ger.gmane.org 1386032352 6166 80.91.229.3 (3 Dec 2013 00:59:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2013 00:59:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 03 01:59:16 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VneKa-0002NJ-LC for ged-emacs-devel@m.gmane.org; Tue, 03 Dec 2013 01:59:16 +0100 Original-Received: from localhost ([::1]:39641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VneKa-0003XM-8H for ged-emacs-devel@m.gmane.org; Mon, 02 Dec 2013 19:59:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VneKW-0003U7-Oa for emacs-devel@gnu.org; Mon, 02 Dec 2013 19:59:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VneKT-00050x-OG for emacs-devel@gnu.org; Mon, 02 Dec 2013 19:59:12 -0500 Original-Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:46205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VneKT-00050r-GN for emacs-devel@gnu.org; Mon, 02 Dec 2013 19:59:09 -0500 Original-Received: by mail-pd0-f174.google.com with SMTP id y13so19237501pdi.19 for ; Mon, 02 Dec 2013 16:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3N5w37hAIZA8IV+67ZJWrLZD4zpxLnilx0MpgutKByc=; b=0PG31pTLSvWqlupo3pqXaPjT7A5O6p9YmF3YH2hygN4jbd3g7Ii7BPG93MrZ/XeGjX 0jggDkmJ/nIcyxz6MK6HVQxHee3Z0ya5ghPgsczyZVWPRXIewdsShSuGAsC6zfRzZl7q j/9dGojj7E27oDbpZavEGDn2JoLPgA2el54huKuh2sOGM3oRGfb7cWONixddmKpY30sP EXTB8KZ3PKsjzGJF2PBeCIJ7V0zCn0hwE9LjthQRkQyva+8YyMcA7Bwupsn0iWJ4WjBF v9l/4EtsPkn9SGpQj7aCLs5wqwrGu3yJizU6A4n7Nsey5d4Ced4ZgxVtUpBVwDJFi7rK VpIQ== X-Received: by 10.68.99.162 with SMTP id er2mr35304255pbb.10.1386032348443; Mon, 02 Dec 2013 16:59:08 -0800 (PST) Original-Received: by 10.66.72.166 with HTTP; Mon, 2 Dec 2013 16:59:08 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166023 Archived-At: --047d7b6d93a6c6bb7b04ec96cd22 Content-Type: text/plain; charset=UTF-8 After a few divisions of the interval by 2 , I got this result: The face (default (:family "Monaco" :background "black" :foreground "gray77" :height 100 ) ) provides exacly the same hight as (font-lock-string-face (:family "Inconsolata" :foreground "lawn green" :height 1.20) ) So, if the height of the original font is 10 pixels, for the second font I need 120% of the initial height to preserve the height. Can you explain me details about what happens ? --047d7b6d93a6c6bb7b04ec96cd22 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

After a few divisions of the interval = by 2 , I got this result:

The face

<= /div>=C2=A0 =C2=A0 (default (:family "Monaco" :background "b= lack" :foreground "gray77" :height 100 ) )

provides exacly the same hight as

<= div>(font-lock-string-face (:family "Inconsolata" :foreground &qu= ot;lawn green" :height 1.20) )

So, if the= height of the original font is 10 pixels, for the second font I need 120% = of the initial height to preserve the height.

Can you explain me details about what happens ?

--047d7b6d93a6c6bb7b04ec96cd22--