From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#52493: 29.0.50; Setting Inconsolata up in init.el makes default face rendered wrong Date: Thu, 22 Dec 2022 22:32:04 +0200 Message-ID: <6b144c99-bb89-65da-45cb-39d9f1903f05@yandex.ru> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <83k0g5j4pi.fsf@gnu.org> <83a6h1husr.fsf@gnu.org> <83czlwhe0v.fsf@gnu.org> <835yrohcb1.fsf@gnu.org> <834k78h989.fsf@gnu.org> <83zgp0ftse.fsf@gnu.org> <83wnk4fpyw.fsf@gnu.org> <9df1ebce-83ff-068c-20ed-b849697a06b2@yandex.ru> <83y24jel7i.fsf@gnu.org> <87a6gz1xn1.fsf@gnus.org> <83lf0jeidi.fsf@gnu.org> <20be7df0-7ae6-8add-d083-45c9212c6dde@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33331"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: rudalics@gmx.at, Eli Zaretskii , 52493@debbugs.gnu.org, Lars Ingebrigtsen , rpluim@gmail.com To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 22 21:33:45 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 1p8SG8-0008Vf-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Dec 2022 21:33:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8SFU-0001wO-Eb; Thu, 22 Dec 2022 15:33:04 -0500 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 1p8SFS-0001w2-DR for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2022 15:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8SFS-0001e3-4y for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2022 15:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8SFR-0005Vn-Qe for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2022 15:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Dec 2022 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52493 X-GNU-PR-Package: emacs Original-Received: via spool by 52493-submit@debbugs.gnu.org id=B52493.167174113521179 (code B ref 52493); Thu, 22 Dec 2022 20:33:01 +0000 Original-Received: (at 52493) by debbugs.gnu.org; 22 Dec 2022 20:32:15 +0000 Original-Received: from localhost ([127.0.0.1]:36291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8SEg-0005VX-NE for submit@debbugs.gnu.org; Thu, 22 Dec 2022 15:32:15 -0500 Original-Received: from mail-ej1-f49.google.com ([209.85.218.49]:37464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8SEf-0005VP-9g for 52493@debbugs.gnu.org; Thu, 22 Dec 2022 15:32:13 -0500 Original-Received: by mail-ej1-f49.google.com with SMTP id ud5so7549084ejc.4 for <52493@debbugs.gnu.org>; Thu, 22 Dec 2022 12:32:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=9yhqHd/dmRcn4WGk8EJru4zUEuzS8wj5K0fpFA6xiIc=; b=R5GdKvrxiYjJ+F9dBrIKG65tGaDD5eWPWOTAYfwxk+cQy83UdWEAQh/2U6i7X3Knpb 9T7E3PU4xdAB2+oifJJU/DPPnN77QEwTzMbYomSqt93dSZuRoUs3Dh3HVp4lZkPpuEvS RO+MHoQMliFzYNHOvcodvggmQGFXwB3Hro6zflTmCi2eqalQvNkaTxDrZvIUYl2WEPSP +KwSYeaDofslr5/Xn+frB5S6Q+cliCz+RRJQTIBamPnDcs4c/oMOoRPbLbNla5Utgvqe p3JLbOifDiupgn1rsQdGZAVxm6988Yrh0R3BxkK7VXMJ+Z4GvUoK35cBSRkePhfqHNWu Zw4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9yhqHd/dmRcn4WGk8EJru4zUEuzS8wj5K0fpFA6xiIc=; b=wsddWZeWA+uZHvtI5ox8NxIB2YDicUtqUXEYpOatcxal3gu67lS4MsDZYCDuKomboB f771Q43F7CSQEFlN51GIYGd0vH7/2nbX175klQIvyULjGN3hRkh+DMDrmA0Ptk8jMsAz oytZnSzAzC+3uzD688gimI4ufpFYFlxzfeOoLZT7oai7EHqnRyGt65Ld6PhC/lpdb58w QLoFYg/w7vzUP/SDoR3WTH34G//lBH2x8w1NEj1ZswOXwf8N9XJBEcF/rNBu+eAebOev +ALFmnwUQij+QA1woTF/4rcS2JCSjZ2GDwakmf0x4lMlKgHShe1CyIiKtHTWt7bXDlOe SRUQ== X-Gm-Message-State: AFqh2koEr8Gksa7bIlNxinwEkW65nUZAp0YuIgafd1ldADAjE/Ya6avJ yJSpGtLE+3uesv22way1Q6s= X-Google-Smtp-Source: AMrXdXu92gLzHrsgtK2j0pn8mpcvqAL58LuyuzjjhcflidduxnKRGMlPOOtOKstKy4yMEqDY8j4MJg== X-Received: by 2002:a17:906:36ce:b0:7c1:727c:5f70 with SMTP id b14-20020a17090636ce00b007c1727c5f70mr5714026ejc.46.1671741127327; Thu, 22 Dec 2022 12:32:07 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id jj20-20020a170907985400b007c0b6e1c7fdsm596462ejc.104.2022.12.22.12.32.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Dec 2022 12:32:06 -0800 (PST) Content-Language: en-US In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251682 Archived-At: On 22/12/2022 01:39, Gregory Heytings wrote: > >> >> Here are a bunch of scenarios, most of them pretty odd. I was >> primarily testing scenario number 2. >> > > Thanks for your detailed reply. > >>> (set-face-attribute 'default nil :height 110 :font "Inconsolata_dz") >>> >>> in a init file, everything works as I'd expect it to work. >> >> 1. If I put this in my init file and start Emacs, during startup it >> blinks to a weird font (narrow window, narrow characters), but then >> finishes startup with a window that looks reasonable (both the size of >> the window and the shape of characters). 'M-x describe-face RET >> default' reports "Inconsolata_dz" as family. >> > > Can you please try an init file with only that line, and that exact > line? Note that your original recipe used ":family", where ":font" > should be used (and is used in the call to set-face-attribute above). With :font, the recipe seems to be working fine. Thanks! I've always used :family for this purpose in the past. >> 2. I start 'emacs -Q' and evaluate (set-face-attribute 'default nil >> :height 105 :family "Inconsolata_dz") in *scratch*. I get that >> weird-looking font that blinks briefly in scenario 1. 'M-x >> describe-face RET default' reports "Ubuntu Condensed" as family. >> > > Again, can you try to evaluate (set-face-attribute 'default nil :height > 110 :font "Inconsolata_dz") (with ":font", not ":family") instead, and > tell us what happens? The behavior seems to be as expected: this font is assigned in the current frame. > Can you try your other recipes, using ":font" where you used ":family", > and tell us whether what happens is what you expected? Almost good, with one problem jumping out, however: - Evaluate (set-face-attribute 'default nil :height 105 :weight 'regular :font "Inconsolata LGC"), result: Family: Inconsolata LGC Foundry: PfEd Width: normal Height: 105 Weight: regular - Then I evaluate (set-face-attribute 'default nil :height 110 :weight 'semi-light :font "Cascadia Mono"), the result is: Family: Inconsolata LGC Foundry: PfEd Width: normal Height: 105 Weight: regular Note the weight. Cascadia Code seems to be thicker than average as a font, so the weight of the regular font jumps out, and it was easy to notice. If I, however, follow (set-face-attribute 'default nil :height 105 :weight 'regular :font "Inconsolata LGC") with (set-face-attribute 'default nil :height 110 :weight 'semi-light :family "Cascadia Mono") -- note :family, the resulting font looks fine, and is described as: Family: Cascadia Mono Foundry: SAJA Width: normal Height: 109 Weight: semi-light Starting the session with (set-face-attribute 'default nil :height 110 :weight 'semi-light :font "Cascadia Mono") also has this problem. However, switching from :family to :font -- (set-face-attribute 'default nil :height 110 :weight 'semi-light :family "Cascadia Mono") followed by (set-face-attribute 'default nil :height 110 :weight 'semi-light :font "Cascadia Mono") -- is a no-op.