From unknown Sun Jun 22 04:29:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42109: 27.0.91; Cannot use italics with some fonts Resent-From: Ori Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2020 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42109@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159335940116781 (code B ref -1); Sun, 28 Jun 2020 15:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2020 15:50:01 +0000 Received: from localhost ([127.0.0.1]:46803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpZZA-0004Ma-Bq for submit@debbugs.gnu.org; Sun, 28 Jun 2020 11:50:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:58380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpYo3-0003EH-Ab for submit@debbugs.gnu.org; Sun, 28 Jun 2020 11:01:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpYo3-0004kT-1t for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 11:01:19 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:40653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpYo0-0001eG-D6 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 11:01:18 -0400 Received: by mail-qv1-xf31.google.com with SMTP id m8so2374470qvk.7 for ; Sun, 28 Jun 2020 08:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oribarbut-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version; bh=ZeFXja1h3EY2TmVuR7FTUZgNGfYR/1qLBVpKxGLO2vA=; b=AWy90opzOc59I4TsVHy91OBGUcuD0QALGNxg3fBlRve6z9c5R6LUgb/9IlVjdsaVta IAGuY6kz3dh/5cpFu6T6olsZ6rt4JFdd6vinzw2cDhm0GFXma21mTPEAPc93580uVEW+ I0dMOZJAqg/gDvqXQCJm/+bej9GLlkvrhjtxJBLzGkaBPMdy+Dqmt5QDaiyPj7JmUJIi DR6Ldx70/+14JLeq+0wYevWNFtf4c5Cw8JftizYZ42bYSbd48KhDHXgG3bjyiOghXebl m1tMkuxL8kETAz+nwcawm+hnTpcQ+0RDgKAPK1cOkgesc+3n9Uc+gF69Me+C/eK7dwjP KdTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=ZeFXja1h3EY2TmVuR7FTUZgNGfYR/1qLBVpKxGLO2vA=; b=uGwhz54IufcE/E6JL8Gd9UR9z9VRMM9FxcWq0hXvD9SKLCDm2tGvaAv4t1e8a5NCpK vAjHM5pBcIQkrmiok9iU3iNUsqPtaOF7dHT99DshNUhI3evc/v+o0zMsLQ41jhvKDxoR bke8L41PluZkDw6OF0bZdSCJkhgGuyTH01o9iUnZiyRzkelOmTOHjWHI3/KhdnALiivH q5sBV4sMXqMcpe8UQXaRp07C+/yrH3B3S51/sD/IwLtS4HMXq3PqE5azvAKToUMBeGkR XfciXTk+XRBKhg6fkPKryTa8erzgbbAUfoy04+cY4fxLuJ9qoFOhYBuTt6mLvLIEUI16 z1TQ== X-Gm-Message-State: AOAM531sf/TksLmoUV5Ot2Q1bvKVrYfZ2JSfPNrAIwb3SJEgE+3OdzH5 SKVzL4QHiN5YC+fhBiV4zWN07A== X-Google-Smtp-Source: ABdhPJz6vvBM2Nv+iQUZYcjnD+rxkzNSffk1i9Ho10lJy0WirelO+5w0rHsfNhQ/L18AA/IEBqXowQ== X-Received: by 2002:a0c:e847:: with SMTP id l7mr11765196qvo.232.1593356474662; Sun, 28 Jun 2020 08:01:14 -0700 (PDT) Received: from oribarbut.com (107-159-5-201.on.dsl.ebox.net. [107.159.5.201]) by smtp.gmail.com with ESMTPSA id b7sm12551102qkl.18.2020.06.28.08.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 08:01:13 -0700 (PDT) Received: by oribarbut.com (Postfix, from userid 1000) id CD73222009A; Sun, 28 Jun 2020 11:01:12 -0400 (EDT) From: Ori Date: Sun, 28 Jun 2020 11:01:12 -0400 Message-ID: <87wo3rnsjr.fsf@oribarbut.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=ori@oribarbut.com; helo=mail-qv1-xf31.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sun, 28 Jun 2020 11:49:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I can't figure out how to get some fonts to show up with an italic face, while others work without a problem. I'm comparing DejaVu Sans Mono and JetBrains Mono, both of which are ttf with an italic face having the same dimensions the roman face. All of this happens in emacs -Q and isn't related to a theme. ;; 1. Works, italic and roman everywhere as expected (set-frame-font "DejaVu Sans Mono-16") ;; 2. Works, italic everywhere and faces that explicitly set ;; :slant 'normal will use the roman variant of the same font (set-frame-font "JetBrains Mono-16:slant=italic") ;; 3. Does not work, all text is rendered roman. In 1 this works with a ;; different font. From result of 2, there exists an italic face for ;; this font which works with the roman face (set-frame-font "JetBrains Mono-16") ;; 4. Does not work, all text is rendered roman, same as 3. Both fonts ;; have same dimensions per 'describe-font, verified in 2 and 3 (set-frame-font "JetBrains Mono-16") (set-face-font 'italic "JetBrains Mono-16:slant=italic") ;; 5. Partly works, will show italics in some buffers which seem to ;; support different fonts together (org-mode, helm-mini) but not others ;; (emacs-lisp-mode with font-lock-comment-face customized to :slant ;; 'italic, still shown in JetBrains Mono roman). Similar to 4 but with ;; a different font for italic. Sizes between these two fonts aren't ;; equal though, char heights are different but I've read something ;; about that being an issue in emacs. (set-frame-font "JetBrains Mono-16") (set-face-font 'italic "DejaVu Sans Mono-16") ;; 6. Same results as 5, although using fonts that are equal in char ;; dimensions (height, ascent, width), but techincally different 'size' ;; (21 for JetBrains, 22 for DejaVu) (set-frame-font "JetBrains Mono-16") (set-face-font 'italic "-PfEd-DejaVu Sans Mono-normal-oblique-normal-*-22-*-*-*-m-0-iso10646-1") ;; 7. Size isn't consistent for roman/italic at different sizes, seen by ;; evaluating each statement separately to switch between italic and ;; roman faces. eg, at -16 the characters are the same size, but -14 has ;; slightly larger italic (width 11 vs 12, same other dimensions). This ;; isn't true in other programs, eg LibreOffice or font-manager. (set-frame-font "JetBrains Mono-16") (set-frame-font "JetBrains Mono-16:slant=italic") (set-frame-font "JetBrains Mono-14") (set-frame-font "JetBrains Mono-14:slant=italic") Some other things I've tried: - Different font sizes - Explicitly set char dimensions with the expanded style, eg: "-JB -JetBrains Mono-normal-*-*-*-21-13-27-*-m-0-iso10646-1" - Convert JetBrains Mono to otf (from woff), remove the ttf version and rebuild font cache - Same issues in GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-23, modified by Debian built on lgw01-amd64-032 - Same issues when using recommended font setting via 'default-frame-alist Any ideas what else I might try here? Thanks! Ori In GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.18) of 2020-06-27 built on difference-engine Repository revision: 0121db27021ce77350999b108b4e5aed21d73064 Repository branch: emacs-27 Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Ubuntu 20.04 LTS Recent messages: Quit Making completion list... Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-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: (misearch multi-isearch pp shadow sort mail-extr emacsbug sendmail eieio-opt cl-extra speedbar sb-image ezimage dframe help-fns radix-tree help-mode apropos vc-git diff-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs org-element avl-tree generator ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy url-expand url-methods url-history mailcap shr url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs json map url-vars svg xml dom browse-url gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search seq byte-opt gv bytecomp byte-compile cconv mail-utils mm-util mail-prsvr ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex ol-bbdb ol-w3m org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date subr-x noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs kmacro crm thingatpt cus-edit easymenu cus-start cus-load wid-edit cl-loaddefs cl-lib 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 threads 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 206117 26336) (symbols 48 22389 3) (strings 32 70493 2946) (string-bytes 1 2441537) (vectors 16 37519) (vector-slots 8 792526 127340) (floats 8 223 497) (intervals 56 1297 16) (buffers 1000 23)) From unknown Sun Jun 22 04:29:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42109: 27.0.91; Cannot use italics with some fonts References: <87wo3rnsjr.fsf@oribarbut.com> In-Reply-To: <87wo3rnsjr.fsf@oribarbut.com> Resent-From: Ori Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2020 22:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42109@debbugs.gnu.org Received: via spool by 42109-submit@debbugs.gnu.org id=B42109.159338412918435 (code B ref 42109); Sun, 28 Jun 2020 22:43:03 +0000 Received: (at 42109) by debbugs.gnu.org; 28 Jun 2020 22:42:09 +0000 Received: from localhost ([127.0.0.1]:47178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpg00-0004nG-Hl for submit@debbugs.gnu.org; Sun, 28 Jun 2020 18:42:08 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpagT-0008FL-9M for 42109@debbugs.gnu.org; Sun, 28 Jun 2020 13:01:40 -0400 Received: by mail-qt1-f193.google.com with SMTP id v19so11163527qtq.10 for <42109@debbugs.gnu.org>; Sun, 28 Jun 2020 10:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oribarbut-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version; bh=T1NVhx7GadQpl6vKs59GN4QkhlEIXcTP/JCemFHPBvQ=; b=Z62FICJM0W+i/CoOSbMpj1DUDb9U2JC4nlPzMU8Px+0PEGuPf4bvp7sPgZs9UyuLrI XoBfci2BLI7xu/OIsCZ6/5hJX0i44NoTG7xGzPo7DA/lIXxgqhZ8TqL99eNdCMyWVU56 I5OWWPfVVgcKY2eNUtCd8QBHFBvPoldAAzpdCyhSXGVKZO1zbWOEYpOMtMlnWV8G5o7t fUc7nu7YbA+YD3tw12g4pJqEjzCzIVqq5m8lxbrOKDLvOi7aAxyNrFgPaj2sEAhFcDUA pWHSC65wEvTkDEGdxa7gdqsMrdkvepNHnpZtaNOBnVLrbmiZHmVe3YEFyS1SR7/QQnze isVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=T1NVhx7GadQpl6vKs59GN4QkhlEIXcTP/JCemFHPBvQ=; b=fQDi5aD1rHtxYpOCoR0OizoEwj+p8KvnHtl/NNpfrnqs+ihIANAPFqlwK3tViM5Vm/ XIBXmxrIdQ3KjMFaA8ldIWKiUjg3hx729vt5TfI/A3nBj8LoYS5FQiaYsLpm+5lxddoe m3eaaxDOaQhmEboBjZUr1/eWSSXE35El3QaFLIAneA5GMrGCNXDXrcyVIBmokubTkR8D yLgv+iPPAuzMIGM4da4lXwpbENyygvr8KeGNPxPg2GkwWMsAn7DzsluC2Wkg4y+lLg2O I9TSTRRucLerPNWA12fuv1YEHpbiH7VgS5gOrcArbAc1fgQJy7xI3apuiZ5sbUVqvIP+ o6uQ== X-Gm-Message-State: AOAM533nRTo6awWmPYbYDMqe4Z425pjPSCXNMghEvydtInhetYPS2+uQ nFbGa1+TIaBIVJocsDU/m42n3Hfq2jc= X-Google-Smtp-Source: ABdhPJxWBAZUw96EoaCkBEoI1pjVRMXsD1tKZEXhATxOoTcIld4BLzLb/SITorJtG+SYKJho3uiqMg== X-Received: by 2002:ac8:7b38:: with SMTP id l24mr12578271qtu.122.1593363691473; Sun, 28 Jun 2020 10:01:31 -0700 (PDT) Received: from oribarbut.com (107-159-5-201.on.dsl.ebox.net. [107.159.5.201]) by smtp.gmail.com with ESMTPSA id i22sm12857953qki.4.2020.06.28.10.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 10:01:30 -0700 (PDT) Received: by oribarbut.com (Postfix, from userid 1000) id 6A88322009A; Sun, 28 Jun 2020 13:01:29 -0400 (EDT) From: Ori Date: Sun, 28 Jun 2020 13:01:29 -0400 Message-ID: <87d05jcefq.fsf@oribarbut.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Sun, 28 Jun 2020 18:42:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) A small update, I've re-built with cairo support and #7 no longer happens: > 7. Size isn't consistent for roman/italic at different sizes From unknown Sun Jun 22 04:29:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42109: 27.0.91; Cannot use italics with some fonts References: <87wo3rnsjr.fsf@oribarbut.com> In-Reply-To: <87wo3rnsjr.fsf@oribarbut.com> Resent-From: Ori Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Aug 2020 20:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42109@debbugs.gnu.org Received: via spool by 42109-submit@debbugs.gnu.org id=B42109.159631423612919 (code B ref 42109); Sat, 01 Aug 2020 20:38:01 +0000 Received: (at 42109) by debbugs.gnu.org; 1 Aug 2020 20:37:16 +0000 Received: from localhost ([127.0.0.1]:41145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1yFo-0003MJ-Gj for submit@debbugs.gnu.org; Sat, 01 Aug 2020 16:37:16 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:39932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1yFk-0003M3-4c for 42109@debbugs.gnu.org; Sat, 01 Aug 2020 16:37:15 -0400 Received: by mail-qk1-f182.google.com with SMTP id l6so32013135qkc.6 for <42109@debbugs.gnu.org>; Sat, 01 Aug 2020 13:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oribarbut-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version; bh=ux0qCL/SxlnK4+UbT6x1r/wikuvSQwsOHfluQ+0ajYg=; b=HCJRI6eVUuoHIRiKWCkv72Vg4wYVrjuWywV/eXhFfI8tjV36uF6XMRgKGaWm9AJlcm t9R9i30Bk69oHvlRBysZM7+DGsqvcmVioj57UwGWAIFUN/3x9j4s4XW8hzM0oloSjRkL IEHR5jRGkStNRUYFOqpJXBbb8OKBADPFVSJV90kp59bBSGiGk95LQT9d7PgZ+6G+Q2ah GTRSbjsulp6NySBME4z4yyE19v22ToWzLy7OUs0cTb6oXZAUZiw+Y8O4zX6S7n46tVjJ Ui01K/oN7lbOK1YoY1gi+6UzrldbFyZCi/zqCzRRax82+o3D4bbKj46I9I+9icThylnY TKWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=ux0qCL/SxlnK4+UbT6x1r/wikuvSQwsOHfluQ+0ajYg=; b=dRB3wmm9n9sQSqz/zEPpK9laYMsDeAbdd1bnQdhReMfiIcl+atKd6atsPlCSTlp+aV mUEDwh1PKlPfKXy4hlA6ZukQ9CvXAstcqrFGdIVW39VwhT2d5yRAaCevJUjHGbQlfj4L ycOofL1nw1Inzs8aymkfw5/IRvuBcev3TubhPR+HVeg88uSBf+5iUycyd1pVXK95XkEb +T7auItL0Sd4NYGZ3hLqLA7aNr4LJr2mqSPWtRFugT1yGQyR91s8Tml1j0452pK3KOwf 3NMqjbNxH/YHE4o/5to4BPUmedUvj/Fyl1Og50av8iK9s/UkQhU7FLHUA83GIWMY5Jdy IwzA== X-Gm-Message-State: AOAM530I8wrYvOgAocXNC9Ca8m1CHG9vwTnRCyOspGRHnIIx/ntZNlj/ VjMZo3BP94RCVm0KkEHaCLa7JUN3/A4= X-Google-Smtp-Source: ABdhPJwZ+PR9lCKdzlAd5jr89wx3yDkNENjPqcN/CGawfCLQR2tPMJgI6zqw8TVQlXZsVpCw3+aA1w== X-Received: by 2002:a37:4ed0:: with SMTP id c199mr9892035qkb.80.1596314226318; Sat, 01 Aug 2020 13:37:06 -0700 (PDT) Received: from oribarbut.com (107-159-2-123.on.dsl.ebox.net. [107.159.2.123]) by smtp.gmail.com with ESMTPSA id k1sm10606127qkf.12.2020.08.01.13.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Aug 2020 13:37:05 -0700 (PDT) Received: by oribarbut.com (Postfix, from userid 1000) id 8761F220593; Sat, 1 Aug 2020 16:37:04 -0400 (EDT) From: Ori Date: Sat, 01 Aug 2020 16:37:04 -0400 Message-ID: <87tuxmw1an.fsf@oribarbut.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This turned out to be a bug in the font. Apparently even though the italic and non-italic dimensions were rounding out to be identical in Emacs, at a fractional level they were not: This can be closed! Thanks. From unknown Sun Jun 22 04:29:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ori Subject: bug#42109: closed (Re: bug#42109: 27.0.91; Cannot use italics with some fonts) Message-ID: References: <83bljtdbhi.fsf@gnu.org> <87wo3rnsjr.fsf@oribarbut.com> X-Gnu-PR-Message: they-closed 42109 X-Gnu-PR-Package: emacs Reply-To: 42109@debbugs.gnu.org Date: Sun, 02 Aug 2020 02:33:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1596335581-12667-1" This is a multi-part message in MIME format... ------------=_1596335581-12667-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #42109: 27.0.91; Cannot use italics with some fonts which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 42109@debbugs.gnu.org. --=20 42109: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42109 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1596335581-12667-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 42109-done) by debbugs.gnu.org; 2 Aug 2020 02:32:20 +0000 Received: from localhost ([127.0.0.1]:41301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k23nP-0003HM-OE for submit@debbugs.gnu.org; Sat, 01 Aug 2020 22:32:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k23nN-0003H6-13 for 42109-done@debbugs.gnu.org; Sat, 01 Aug 2020 22:32:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44075) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k23nH-0003Dz-FB; Sat, 01 Aug 2020 22:32:11 -0400 Received: from [176.228.60.248] (port=1838 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k23nF-0006Wa-Gq; Sat, 01 Aug 2020 22:32:11 -0400 Date: Sun, 02 Aug 2020 05:31:53 +0300 Message-Id: <83bljtdbhi.fsf@gnu.org> From: Eli Zaretskii To: Ori In-Reply-To: <87tuxmw1an.fsf@oribarbut.com> (message from Ori on Sat, 01 Aug 2020 16:37:04 -0400) Subject: Re: bug#42109: 27.0.91; Cannot use italics with some fonts References: <87wo3rnsjr.fsf@oribarbut.com> <87tuxmw1an.fsf@oribarbut.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42109-done Cc: 42109-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ori > Date: Sat, 01 Aug 2020 16:37:04 -0400 > > > This turned out to be a bug in the font. Apparently even though the italic and non-italic dimensions were rounding out to be identical in Emacs, at a fractional level they were not: > > > > This can be closed! Thanks. Thanks, closing. ------------=_1596335581-12667-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jun 2020 15:50:01 +0000 Received: from localhost ([127.0.0.1]:46803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpZZA-0004Ma-Bq for submit@debbugs.gnu.org; Sun, 28 Jun 2020 11:50:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:58380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpYo3-0003EH-Ab for submit@debbugs.gnu.org; Sun, 28 Jun 2020 11:01:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpYo3-0004kT-1t for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 11:01:19 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:40653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpYo0-0001eG-D6 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 11:01:18 -0400 Received: by mail-qv1-xf31.google.com with SMTP id m8so2374470qvk.7 for ; Sun, 28 Jun 2020 08:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oribarbut-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version; bh=ZeFXja1h3EY2TmVuR7FTUZgNGfYR/1qLBVpKxGLO2vA=; b=AWy90opzOc59I4TsVHy91OBGUcuD0QALGNxg3fBlRve6z9c5R6LUgb/9IlVjdsaVta IAGuY6kz3dh/5cpFu6T6olsZ6rt4JFdd6vinzw2cDhm0GFXma21mTPEAPc93580uVEW+ I0dMOZJAqg/gDvqXQCJm/+bej9GLlkvrhjtxJBLzGkaBPMdy+Dqmt5QDaiyPj7JmUJIi DR6Ldx70/+14JLeq+0wYevWNFtf4c5Cw8JftizYZ42bYSbd48KhDHXgG3bjyiOghXebl m1tMkuxL8kETAz+nwcawm+hnTpcQ+0RDgKAPK1cOkgesc+3n9Uc+gF69Me+C/eK7dwjP KdTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=ZeFXja1h3EY2TmVuR7FTUZgNGfYR/1qLBVpKxGLO2vA=; b=uGwhz54IufcE/E6JL8Gd9UR9z9VRMM9FxcWq0hXvD9SKLCDm2tGvaAv4t1e8a5NCpK vAjHM5pBcIQkrmiok9iU3iNUsqPtaOF7dHT99DshNUhI3evc/v+o0zMsLQ41jhvKDxoR bke8L41PluZkDw6OF0bZdSCJkhgGuyTH01o9iUnZiyRzkelOmTOHjWHI3/KhdnALiivH q5sBV4sMXqMcpe8UQXaRp07C+/yrH3B3S51/sD/IwLtS4HMXq3PqE5azvAKToUMBeGkR XfciXTk+XRBKhg6fkPKryTa8erzgbbAUfoy04+cY4fxLuJ9qoFOhYBuTt6mLvLIEUI16 z1TQ== X-Gm-Message-State: AOAM531sf/TksLmoUV5Ot2Q1bvKVrYfZ2JSfPNrAIwb3SJEgE+3OdzH5 SKVzL4QHiN5YC+fhBiV4zWN07A== X-Google-Smtp-Source: ABdhPJz6vvBM2Nv+iQUZYcjnD+rxkzNSffk1i9Ho10lJy0WirelO+5w0rHsfNhQ/L18AA/IEBqXowQ== X-Received: by 2002:a0c:e847:: with SMTP id l7mr11765196qvo.232.1593356474662; Sun, 28 Jun 2020 08:01:14 -0700 (PDT) Received: from oribarbut.com (107-159-5-201.on.dsl.ebox.net. [107.159.5.201]) by smtp.gmail.com with ESMTPSA id b7sm12551102qkl.18.2020.06.28.08.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 08:01:13 -0700 (PDT) Received: by oribarbut.com (Postfix, from userid 1000) id CD73222009A; Sun, 28 Jun 2020 11:01:12 -0400 (EDT) From: Ori To: bug-gnu-emacs@gnu.org Subject: 27.0.91; Cannot use italics with some fonts Date: Sun, 28 Jun 2020 11:01:12 -0400 Message-ID: <87wo3rnsjr.fsf@oribarbut.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=ori@oribarbut.com; helo=mail-qv1-xf31.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 28 Jun 2020 11:49:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I can't figure out how to get some fonts to show up with an italic face, while others work without a problem. I'm comparing DejaVu Sans Mono and JetBrains Mono, both of which are ttf with an italic face having the same dimensions the roman face. All of this happens in emacs -Q and isn't related to a theme. ;; 1. Works, italic and roman everywhere as expected (set-frame-font "DejaVu Sans Mono-16") ;; 2. Works, italic everywhere and faces that explicitly set ;; :slant 'normal will use the roman variant of the same font (set-frame-font "JetBrains Mono-16:slant=italic") ;; 3. Does not work, all text is rendered roman. In 1 this works with a ;; different font. From result of 2, there exists an italic face for ;; this font which works with the roman face (set-frame-font "JetBrains Mono-16") ;; 4. Does not work, all text is rendered roman, same as 3. Both fonts ;; have same dimensions per 'describe-font, verified in 2 and 3 (set-frame-font "JetBrains Mono-16") (set-face-font 'italic "JetBrains Mono-16:slant=italic") ;; 5. Partly works, will show italics in some buffers which seem to ;; support different fonts together (org-mode, helm-mini) but not others ;; (emacs-lisp-mode with font-lock-comment-face customized to :slant ;; 'italic, still shown in JetBrains Mono roman). Similar to 4 but with ;; a different font for italic. Sizes between these two fonts aren't ;; equal though, char heights are different but I've read something ;; about that being an issue in emacs. (set-frame-font "JetBrains Mono-16") (set-face-font 'italic "DejaVu Sans Mono-16") ;; 6. Same results as 5, although using fonts that are equal in char ;; dimensions (height, ascent, width), but techincally different 'size' ;; (21 for JetBrains, 22 for DejaVu) (set-frame-font "JetBrains Mono-16") (set-face-font 'italic "-PfEd-DejaVu Sans Mono-normal-oblique-normal-*-22-*-*-*-m-0-iso10646-1") ;; 7. Size isn't consistent for roman/italic at different sizes, seen by ;; evaluating each statement separately to switch between italic and ;; roman faces. eg, at -16 the characters are the same size, but -14 has ;; slightly larger italic (width 11 vs 12, same other dimensions). This ;; isn't true in other programs, eg LibreOffice or font-manager. (set-frame-font "JetBrains Mono-16") (set-frame-font "JetBrains Mono-16:slant=italic") (set-frame-font "JetBrains Mono-14") (set-frame-font "JetBrains Mono-14:slant=italic") Some other things I've tried: - Different font sizes - Explicitly set char dimensions with the expanded style, eg: "-JB -JetBrains Mono-normal-*-*-*-21-13-27-*-m-0-iso10646-1" - Convert JetBrains Mono to otf (from woff), remove the ttf version and rebuild font cache - Same issues in GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-23, modified by Debian built on lgw01-amd64-032 - Same issues when using recommended font setting via 'default-frame-alist Any ideas what else I might try here? Thanks! Ori In GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.18) of 2020-06-27 built on difference-engine Repository revision: 0121db27021ce77350999b108b4e5aed21d73064 Repository branch: emacs-27 Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Ubuntu 20.04 LTS Recent messages: Quit Making completion list... Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-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: (misearch multi-isearch pp shadow sort mail-extr emacsbug sendmail eieio-opt cl-extra speedbar sb-image ezimage dframe help-fns radix-tree help-mode apropos vc-git diff-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs org-element avl-tree generator ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy url-expand url-methods url-history mailcap shr url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs json map url-vars svg xml dom browse-url gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search seq byte-opt gv bytecomp byte-compile cconv mail-utils mm-util mail-prsvr ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex ol-bbdb ol-w3m org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date subr-x noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs kmacro crm thingatpt cus-edit easymenu cus-start cus-load wid-edit cl-loaddefs cl-lib 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 threads 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 206117 26336) (symbols 48 22389 3) (strings 32 70493 2946) (string-bytes 1 2441537) (vectors 16 37519) (vector-slots 8 792526 127340) (floats 8 223 497) (intervals 56 1297 16) (buffers 1000 23)) ------------=_1596335581-12667-1--