From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Piat Newsgroups: gmane.emacs.bugs Subject: bug#31702: 26.1; Effective font height is different from set value Date: Mon, 04 Jun 2018 00:13:12 -0300 Message-ID: <87tvqjp7lj.fsf@carlos.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528081992 20281 195.159.176.226 (4 Jun 2018 03:13:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2018 03:13:12 +0000 (UTC) To: 31702@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 04 05:13:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPfvf-000593-DE for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jun 2018 05:13:07 +0200 Original-Received: from localhost ([::1]:37407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPfxk-0001Ge-PM for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2018 23:15:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPfxZ-0001GI-C8 for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 23:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPfxW-0005Am-69 for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 23:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPfxW-0005Ai-22 for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 23:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPfxV-00084P-TY for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 23:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Piat Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jun 2018 03:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31702 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152808207230962 (code B ref -1); Mon, 04 Jun 2018 03:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jun 2018 03:14:32 +0000 Original-Received: from localhost ([127.0.0.1]:60738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPfx1-00083K-Sg for submit@debbugs.gnu.org; Sun, 03 Jun 2018 23:14:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPfwz-000832-UN for submit@debbugs.gnu.org; Sun, 03 Jun 2018 23:14:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPfwt-0004ys-Df for submit@debbugs.gnu.org; Sun, 03 Jun 2018 23:14:24 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fPfwt-0004yl-9i for submit@debbugs.gnu.org; Sun, 03 Jun 2018 23:14:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPfwr-0000z5-Rb for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 23:14:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPfwo-0004xr-J5 for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 23:14:21 -0400 Original-Received: from mail-qt0-x22c.google.com ([2607:f8b0:400d:c0d::22c]:40311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPfwo-0004xb-DS for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 23:14:18 -0400 Original-Received: by mail-qt0-x22c.google.com with SMTP id q6-v6so5169231qtn.7 for ; Sun, 03 Jun 2018 20:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=mPwaoenRHGvgXY0+6hkUDnz7BtGIt7OEl+TK1fwjA7c=; b=dcO3bK2K/GVcZ3zHDiEsrJ9mMjMjpEzM8An/stcpTvfwsQDdI7zTF8iv+oCmOPj4a6 GHpkyuazkZLkcW4v0EWYNNQNbYHHBtkU6l0c7r3qYdE/kGgJ6P3SDeHzP4SX6NnVfeIy Reg5PGYX6jKZ+BS7BVlyISgO6ZyKrD8iCOYIUdmp1XQ1bFQM3e4mciG7O0JwsJ1MIf5z pdwa6HhJIW4BfshzAGC8g8Wt5prSy1UeY/R0wN3LM9CS0JMFR3vyF4FqA8Jebsq1cN0/ O4L3nm/nMEWmVi9NBzDyX1zsBdJBXa9W3PexhXRm04Aa4/ahrAHdTsQXMeRXMZyQTK0I rZgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=mPwaoenRHGvgXY0+6hkUDnz7BtGIt7OEl+TK1fwjA7c=; b=bpdMfIMARpe/ep/HZBzUcjgk1Hx8MBYk0quAIW25WyLqBIFoPPEwjCglJmeGe0Zv13 5XCabLvEG2UxY84QLv2f2KGcteYulvGALcmtSHM60X3VoGR6VQc5nncBHKngez3yeVoY z6HQiw8StND+V4YoqkIkxgXOOvtEUXjWT0uKZ64rMMmomUxyRCK+Vf12t5PtX36vZ0Fx iBCxVVDfhSStTsLrBRmyNRaSV1ApnoY/pbxNh2oGaNYMV82ugx6ImKSiMXPPZ4bjyleY k2JnEnfdJW3Mbfkhn4ErlPO5TmQUOUKBbjn6DpZ3Pw78aMl7TPEl9J/roCw2GngqZl9/ 2Exw== X-Gm-Message-State: APt69E07TqTdX5bKygYWyokUUJaKSKN8CVHqXDxSZ1ogfj4Z7MvMVTRT p1wPFZ3vYPwkpMnIsyIHKKUYOg== X-Google-Smtp-Source: ADUXVKL9BneB4KEVKKOYSURp6IU937o6gPlFWuxhjf85yIfDnHpqLJL6tna0OeHPVOwYrP4r1y4Quw== X-Received: by 2002:ac8:254d:: with SMTP id 13-v6mr2775678qtn.0.1528082057396; Sun, 03 Jun 2018 20:14:17 -0700 (PDT) Original-Received: from carlos ([190.244.190.18]) by smtp.gmail.com with ESMTPSA id j1-v6sm5327166qte.13.2018.06.03.20.14.16 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 20:14:16 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 208.118.235.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:146936 Archived-At: I'm setting the Hack Mono font for the default face with size 110: (set-face-attribute 'default nil :font "Hack" :height 110) but I noticed that the result is slightly different from what gnome-terminal renders for "Hack 11". Namely, in emacs the font looks bigger. So I checked the attribute value in the customize-face screen for the default face, which showed a height of 113. Playing a bit with different heights I realized that the number I set is never exactly the setting that ends up being effective, as if a rounding error or something was happening somewhere. Even if I set the font as "Hack 10" or set it from the standard dialog that is available in the menu bar the result is the same. Some relevant libraries in my system are: local/freetype2 2.9.1-1 Font rasterization library local/libxft 2.3.2-1 FreeType-based font drawing library for X In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-05-29 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Manjaro Linux Recent messages: nil Creating customization items... Creating customization items ...done Resetting customization items...done Creating customization setup...done nil Entering debugger... previous-line: Beginning of buffer nil Auto-saving... Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: show-paren-mode: t diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print debug crm vc-git base16-default-dark-theme base16-theme paren cl-extra yasnippet elec-pair highlight-indentation flymake-proc flymake warnings company edmacro kmacro pcase help-fns radix-tree help-mode elpy find-file-in-project ivy delsel ivy-overlay ffap thingatpt windmove diff-mode easy-mmode elpy-shell pyvenv esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util elpy-profile elpy-django s elpy-refactor subr-x python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec advice json map ido grep compile comint ansi-color files-x etags xref project ring cus-edit cus-start cus-load wid-edit finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 364347 15038) (symbols 48 32967 1) (miscs 40 772 758) (strings 32 72107 1797) (string-bytes 1 2082553) (vectors 16 52862) (vector-slots 8 929416 10894) (floats 8 121 290) (intervals 56 576 99) (buffers 992 15))