From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57962: 29.0.50; Odd font choices Date: Sun, 16 Oct 2022 14:17:55 +0300 Message-ID: <83tu443tlo.fsf@gnu.org> References: <87edw5adz1.fsf@gnus.org> <87h711ii4m.fsf@yahoo.com> <871qs59fds.fsf@gnus.org> <87tu46aazr.fsf@gnus.org> <83h7068v7g.fsf@gnu.org> <878rlia9a0.fsf@gnus.org> <83czau8tu7.fsf@gnu.org> <87r0za8tbf.fsf@gnus.org> <83a65y8srh.fsf@gnu.org> <87ilkm8sha.fsf@gnus.org> <837d128sbf.fsf@gnu.org> <874jw4jar9.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9094"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 57962@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 16 13:21:17 2022 Return-path: Envelope-to: geb-bug-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 1ok1hl-00029U-1P for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 13:21:17 +0200 Original-Received: from localhost ([::1]:44774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok1hj-0003U8-T6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 07:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1fc-0001i4-VB for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 07:19:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ok1fZ-0005vD-UE for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 07:19:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ok1fZ-0008Q2-Oy for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 07:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Oct 2022 11:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57962 X-GNU-PR-Package: emacs Original-Received: via spool by 57962-submit@debbugs.gnu.org id=B57962.166591909732298 (code B ref 57962); Sun, 16 Oct 2022 11:19:01 +0000 Original-Received: (at 57962) by debbugs.gnu.org; 16 Oct 2022 11:18:17 +0000 Original-Received: from localhost ([127.0.0.1]:43542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok1er-0008Os-ES for submit@debbugs.gnu.org; Sun, 16 Oct 2022 07:18:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok1eq-0008Ob-1j for 57962@debbugs.gnu.org; Sun, 16 Oct 2022 07:18:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1ek-0005sG-Pk; Sun, 16 Oct 2022 07:18:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=u7XeMxW8Im7cgMpTeIassJy3ONzvnlTTMpHvB9tBVJk=; b=DJYSvV77LfqX vofOEtfHqMRftPplbHJW158trsnzV2dJqGm2aT27sGEjCfNQGdF5d0f4VnoR3dj4DGgHiGWI20K0I /x1s/ksq9sXyCnIdUPXZ27n3popMQWIYbBFJQQPAoUdrf0LNRgeOiJdqjfqly30rj+4eTdi7maRS9 S6qAUEWWTFNsSYpTpeRmOArtvB9xQbxZQxAkUKMd9hlw+Sd0S0w+Z5ogYoXkhRFo0n3IEw/BV25iX R0ZjP8MfX1iYNsZosS4ceTY8908mQqtBVe2gOY1YpBL4m4FF5ss51lLlWP4EYSiehxsAgtN4RMx7D 0JSgYjWD+yYJ+1OAH+bppA==; Original-Received: from [87.69.77.57] (port=4275 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok1ek-00056K-8b; Sun, 16 Oct 2022 07:18:10 -0400 In-Reply-To: <874jw4jar9.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 16 Oct 2022 12:58:18 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245635 Archived-At: > From: Lars Ingebrigtsen > Cc: luangruo@yahoo.com, 57962@debbugs.gnu.org > Date: Sun, 16 Oct 2022 12:58:18 +0200 > > I've poked around some more here, experimenting with different fonts > with -fn, and the thing is that everything works as expected with most > fonts (i.e., the height of `fixed-pitch' and `default' fonts are the > same, which is the problem, really) -- but with the default font in > Ubuntu, "Ubuntu Mono", that's not the case. > > So Emacs has chosen these two fonts for `default' and `fixed-pitch', > respectively: > > ftcrhb:-DAMA-Ubuntu Mono-regular-normal-normal-*-48-*-*-*-m-0-iso10646-1 (#x2C) > ftcrhb:-PfEd-DejaVu Sans Mono-regular-normal-normal-*-48-*-*-*-m-0-iso10646-1 (#x26) > > Is there something more Emacs could be doing to try to ensure that it > picks equal-sized fonts? By somehow looking at actual font metrics? When we select a suitable font, we generally avoid opening a font, because that's expensive. So looking at the metrics is not possible, unless we actually open each font. But I don't think I understand what is going on here: these two fonts are of the same size -- 48 -- so how come the glyphs have different sizes? And how different are they? Can you look at the character metrics inside gui_produce_glyphs and tell what we get from each font? > (I guess we're currently just saying "give me this font in size 48"? I think so, yes. But if the font spec doesn't specify a size, maybe we get different sizes? Although the fact that both are "48" seems to say we do get the same size? > And that the actual size of the glyphs may vary between fonts?) Not sure how this can happen, but I'm not enough of an expert on fonts, sorry.