From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christoph Groth Newsgroups: gmane.emacs.help Subject: Emacs 28: bitmap fonts, vector font character spacing Date: Mon, 24 Jul 2023 15:15:24 +0200 Message-ID: <874jltbgcz.fsf@drac> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24406"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 15:16:56 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qNvQl-00062k-6D for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 15:16:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNvPo-0006aZ-7t; Mon, 24 Jul 2023 09:15:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNvPm-0006a9-64 for help-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:15:54 -0400 Original-Received: from dia.uberspace.de ([185.26.156.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNvPi-00055S-3x for help-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:15:53 -0400 Original-Received: (qmail 22620 invoked by uid 989); 24 Jul 2023 13:15:40 -0000 Authentication-Results: dia.uberspace.de; auth=pass (plain) X-Rspamd-Bar: / X-Rspamd-Report: HEADER_TO_EMPTY_DELIMITER(1) MIME_GOOD(-0.2) SIGNED_PGP(-2) MID_RHS_NOT_FQDN(0.5) BAYES_HAM(-0.244766) X-Rspamd-Score: -0.944766 Original-Received: from unknown (HELO unkown) (::1) by dia.uberspace.de (Haraka/3.0.1) with ESMTPSA; Mon, 24 Jul 2023 15:15:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=grothesque.org; s=uberspace; h=from; bh=Nsv/j/Tj7docvmPyCZEnbwfmKOdI99wq7EfHXt7z2+E=; b=CHXuR4SExmAorMFnnqkXDPGeyimX0EjaoAeKV3Uq3RuogpZxv2blBLZbGJP8nufZYtRi3Tu8TS A1fNla12xcippY3K2onnAzhwiwgHLlUyuumQz6AtQcq2QlgQKOIpKInuw1wFLyEDVS5C3vNPe8y0 suF7pfLm95oq+VSRf2ippkEYlRIFBkFcbxhbkclkYXf3t/ADbOyvsCiSG165ZMPgCJbh3AesTIsC Y8ITvZZxDfmkRR4Ery7Q46trwwEF04XKr9IFFvxU0JyMV6fq8j05r1ONFSXkpfVjlcC3aulsraUU s33XjpKt0tq9MGTE3AHeLrp1u0z7sHJ429FikF9MH8NjXgD1cCiR0tyWSniO1U3rt9W9XrfZAe9A sg1rjb8Gul0/5p5u64mLE0cb6GRwScdecriT7xPOYJgAUPdXpcujaE8tt2gDEnodWtaobiCXAgev Ga0GEceNTD9lUexSidFF7mYEEpPiz/2FmvOlUvE7zLkw38dkWc3xotraEfek1MPPbOm1f43TlE7W G/eLjx+2do/FhMycwaA/amDbGxroG+dyG4pcp/jEaEPxMMjdr8Qz+lI1j9Sy2INoK4bS2GPE3Hnk gCraFFr5ypMgoK9ZijEh7rhvknRAJzVHF4Az/z6pG6YNVfftQPi5+NYttBTUQ3YRq57JmufDQGM/ w= Received-SPF: pass client-ip=185.26.156.221; envelope-from=christoph@grothesque.org; helo=dia.uberspace.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HDRS_MISSP=0.001, MSGID_FROM_MTA_HEADER=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144413 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I=E2=80=99m having some trouble trying to set up a pleasant font after upgr= ading to Emacs 28. Would someone be so kind to help? For many years I was happily using the =E2=80=9CTerminus=E2=80=9D bitmap fo= nt in Emacs and terminal windows on =E2=80=9Cregular density=E2=80=9D displays. On =E2= =80=9CHiDPI=E2=80=9D displays I switched to vector fonts, but for low density displays I preferred the crisp Terminus. I recently upgraded Emacs from 27.1 to 28.2 as part of upgrading to the new Debian stable and this broke my font setup. I have something like the following in my emacs config. (add-to-list 'default-frame-alist '(font . "Terminus-12")) With Emacs 28.2 the default font is now much too small (I=E2=80=99m not even sure whether it=E2=80=99s still Terminus). It is possible to choose Termin= us with M-x menu-set-font, but this shows the same tiny font independently of the chosen size. I noticed the following entry in NEWS: > ** The Cairo graphics library is now used by default if present. > '--with-cairo' is now the default, if the appropriate development > files are found by 'configure'. Building with Cairo is known to cause > some problems with bitmap fonts. This may require you to adjust your > font settings, or to build with Xft support instead. Unfortunately, this is not very specific. Do =E2=80=9Csome problems=E2=80= =9D mean that fonts like Terminus no longer work and that I have to recompile Emacs if I want to use them, or is there some workaround? I tried to find one, but so far without success. =2D--------------------------------------------------------------- So, OK, I thought I=E2=80=99d go with the time and switch to a vector font = on low-density displays as well. I like how Fira Code Light looks in xfce4-terminal. I managed to set it to the size I like through (add-to-list 'default-frame-alist '(font . "-CTDB-Fira Code-light-normal-normal-*-14-*-*-*-m-0-iso10646-1")) (Interestingly, I am not able to obtain this size by simply using =E2=80=9C= Fira Code-N=E2=80=9D. The font is either too small or too large!) Anyway, while with the above the vertical line spacing matches the one in xfce4-terminal, the horizontal inter-character distance is somewhat wider. Is there a way to render the font like in xfce4-terminal? (I believe that this issue could be related to kerning being handled differently by Emacs/Cairo, but I did not manage to find any information on how to adjust it.) For reference: =2D--------------------------------------------------------------- (frame-parameter nil 'font-backend) (ftcrhb x) system-configuration-features "ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JS= ON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP = NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_B= ARS X11 XDBE XIM XPM GTK3 ZLIB" =2D--------------------------------------------------------------- My ~/.Xresources contains =2D--------------------------------------------------------------- Xft.antialias: 0 Xft.hinting: 0 Xft.hintstyle: hintfull Xft.lcdfilter: lcddefault Xft.rgba: rgb =2D--------------------------------------------------------------- Cheers Christoph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJNBAEBCgA3FiEEP6x58QAOdlLG0jena2rszJGp28QFAmS+eWwZHGNocmlzdG9w aEBncm90aGVzcXVlLm9yZwAKCRBrauzMkanbxNlnD/9+wC8uqO4yhenqz84iYm0X qamIlZc7Hb3WgofHGZLIwRy2uJ+3KQxrwONWLSDxoXb/UqVx+HAuDsNSbLze0Nwy eZzUZf6L+6OO9XnnnkviiAhq4esNy90ucI3Y/7/2s67LFvDVyw134var2U1tkuJK l4ucFVx/81IXvI8MjvC0uxrY2XOlo+Yn9TvHRMiXC+AfKdHj6nlhIgJwn79hw49l tFaeQTWlRhx+1yyWSBBMTUO05StyTGSsXZK9PHc50S0Ifw5+/kc6ijpdit9fIMoj g/lxnx/59RvRjwPLprMflez088DAmaWmpc3qxRA0rytWjkR8r4EBiuiPbPsQsp2w zKx+CNvcwo6wwcJa2clBzQn82qn8GKgEKknjrNXEW+vM+gYKBxNONBI8xcNTKuVe AFt04FV2alW7y2knPs76bJmGaIyNvLDzMsydgpAo9Xf+xU4t8t1fmyEbngx1pwop YJrzvnCi9zCgE35dbuw3uFyW331qOtSK6hVuVdsEcTh/6abbzsZX3TYzT8Lrow3H sKHT7A5Fo4I4+8PXzGU2uMffzKR3syPtfERVpMpa3a9iM3x+NIVW+kqLlG7g5WRp J0Sqavw/sLfaEnJEfzgv/YLgvF3934Z1wfCAowF/kgxhNZX6L9UJCkpLocF8GUVT V4uchDAWWfAYX/xEllF88w== =W4P3 -----END PGP SIGNATURE----- --=-=-=--