From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#34577: 27.0.50; Identical face specification yields different line heights on different platforms Date: Tue, 19 Feb 2019 20:25:29 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="251286"; mail-complaints-to="usenet@blaine.gmane.org" To: 34577@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 20:27:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwB2u-0013GQ-St for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 20:27:13 +0100 Original-Received: from localhost ([127.0.0.1]:53954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwB2t-0002pw-Pu for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 14:27:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwB2l-0002pj-Kz for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 14:27:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwB2k-0005pc-QB for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 14:27:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwB2k-0005pV-Az for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 14:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gwB2k-000898-73 for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 14:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Feb 2019 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34577 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155060436931244 (code B ref -1); Tue, 19 Feb 2019 19:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2019 19:26:09 +0000 Original-Received: from localhost ([127.0.0.1]:55578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwB1t-00087s-3O for submit@debbugs.gnu.org; Tue, 19 Feb 2019 14:26:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwB1n-00087J-K4 for submit@debbugs.gnu.org; Tue, 19 Feb 2019 14:26:06 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwB1Y-00058F-I7 for submit@debbugs.gnu.org; Tue, 19 Feb 2019 14:25:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwB1X-0002hf-Gc for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 14:25:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwB1U-00055d-Ge for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 14:25:46 -0500 Original-Received: from metalevel.at ([78.46.218.83]:34312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwB1M-00051G-Lw for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 14:25:38 -0500 Original-Received: from mts-Mac-mini.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 8FC6FA01FB for ; Tue, 19 Feb 2019 20:25:32 +0100 (CET) Original-Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id 57D3C395636; Tue, 19 Feb 2019 20:25:29 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155569 Archived-At: Please start Emacs with "emacs -Q" and evaluate: (defface height-test '((((class color)) (:family "DejaVu Sans Mono" :height 180 :weight normal :slant normal))) "Face for height test") Using Debian on my machine, then evaluating the form: (aref (font-info (face-font 'height-test)) 3) yields: 29 In contrast, using OSX and Emacs from Macports (please see below for the exact configuration), evaluating the same form yields: 28. For one of my applications, I would like to obtain identical results on all platforms, and the different line heights currently cause different Emacs behaviour regarding scrolling etc. on these platforms. Is there a way to reliably obtain the same results on these platforms? Thank you and all the best! Markus For comparison, the results of the following form are shown below: (mapc (lambda (e) (insert (format "\n%s" e))) (font-info (face-font 'height-test))) Result on OSX: -PfEd-DejaVu Sans Mono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 DejaVu Sans Mono:pixelsize=24:foundry=PfEd:weight=normal:slant=normal:width=normal:spacing=100:scalable=true 24 29 0 0 0 14 23 6 14 14 /opt/local/share/fonts/dejavu-fonts/DejaVuSansMono.ttf nil Result on Debian: -unknown-DejaVu Sans Mono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 DejaVu Sans Mono:pixelsize=24:foundry=unknown:weight=normal:slant=normal:width=normal:spacing=100:scalable=true 24 28 0 0 0 14 22 6 14 14 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf nil In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.0.0, X toolkit, Xaw scroll bars) of 2018-11-15 built on OSX Repository revision: b4eb908f858284a7962851fd99c94598f76afa6f Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Mac OS X 10.14.2 Configured using: 'configure --prefix=/opt/local --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --without-gpm --with-gnutls --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-json --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-lcms2 --without-rsvg --with-xft 'CFLAGS=-pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64' 'CPPFLAGS=-I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64'' Configured features: XPM JPEG TIFF GIF PNG NOTIFY KQUEUE ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON LCMS2 GMP Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix