Received: (at 79906) by debbugs.gnu.org; 30 Nov 2025 10:47:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 30 05:47:31 2025 Received: from localhost ([127.0.0.1]:37530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vPexl-0005lE-3p for submit <at> debbugs.gnu.org; Sun, 30 Nov 2025 05:47:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42064) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vPexf-0005jO-ND for 79906 <at> debbugs.gnu.org; Sun, 30 Nov 2025 05:47:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vPexZ-0003H5-Eb; Sun, 30 Nov 2025 05:47:18 -0500 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=U8cdtKBj7ZlCB4zh86VOrMCqVNEB106nt0+u9AYXB4o=; b=jERUya6vTK9p GTw12Zjii5MHm757T7x/MeA7RKtuGUGdWBayny2h3MFM9H9pW5nHHvq7iLIPXVjDIrQMqYDR46B5K CHncYOd3x7WTIBMPDyNYz+Z83+EEHzacVSTVTgdL4vdj+l4fWpL02vpyvNH0vYywKaqh9ldwVb6d4 8ZzqP+SFSRGXQ9UwTzJtNjenmGNAeVM9fAKhPGWOjaHJ5t6XiG4a053jJZ8ebDMjnm4x/6z7qAy0r HRG4NDW645QCg5VnK6f2VhoZ8H0RkShCoSaFfcY/Wxx03dqL0J/ZG+8fNrZS0ZQkCLHXCc1zT+MjU YolDq7NS6hTZQHYMPuTqMw==; Date: Sun, 30 Nov 2025 12:47:13 +0200 Message-Id: <86a5036bm6.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Heime <heimeborgia@HIDDEN> In-Reply-To: <CE0imzS3nrniu6mKO0nE5iCouIJwtKe8J1C_M9faxe5k-d7eOf3ZMMqdVxwvidfUuEj6M9ljhWTCo7YblgsdnosgqUS-x7kimlau5WTnOKY=@protonmail.com> (message from Heime on Sun, 30 Nov 2025 10:39:14 +0000) Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <86345y9xpy.fsf@HIDDEN> <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> <86wm3a8c18.fsf@HIDDEN> <a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com> <86pl9284lc.fsf@HIDDEN> <GR1JhM2N_J6IGOvFYBlkcVp9gulPSCZeada0lMaVKo4Nz7xrhoTgPVYlsTjUFSAyUeC16g24db-a-2NO_sEEyCzEuR4YQaaXpY6_Vzc-JkA=@protonmail.com> <86o6ol8f9b.fsf@HIDDEN> <86ldjp8anm.fsf@HIDDEN> <CE0imzS3nrniu6mKO0nE5iCouIJwtKe8J1C_M9faxe5k-d7eOf3ZMMqdVxwvidfUuEj6M9ljhWTCo7YblgsdnosgqUS-x7kimlau5WTnOKY=@protonmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sun, 30 Nov 2025 10:39:14 +0000 > From: Heime <heimeborgia@HIDDEN> > Cc: 79906 <at> debbugs.gnu.org > > > Note that you are calling buffer-face-mode-invoke with a font-entity > > object: > > > > #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0 nil nil 0> > > > > > > whereas what it wants is a font-spec object. So either use > > font-face-attributes to generate an object of the correct type and > > form, or (better) use (font-spec :family FAMILY), where FAMILY is > > selected by the user, without asking the user to also select a font > > from the family (which could only confuse users and cause incorrect > > results). > > I could not get the font-face-attributes docstring with Emacs 30.0.92. ??? That function exists since Emacs 23. > If I use just the family, the user would not be able to choose whether > it is regular, bold, italic as can be done with Options-SetDefaultFont. They shouldn't be allowed to select anything but regular, otherwise the font will not work well for the buffer. > > (if font ;; Apply font to the current buffer > > (progn (buffer-face-mode 1) (buffer-face-mode-invoke` (:font ,font) t)) > > ;; Disable buffer-face-mode (nil,reset) > > (buffer-face-mode -1))) > > Does one require (buffer-face-mode 1) before buffer-face-mode-invoke, does > the latter activate buffer-face-mode? "Use the source, Luke!" It's all there.
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 30 Nov 2025 10:39:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 30 05:39:31 2025 Received: from localhost ([127.0.0.1]:37416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vPepz-00053b-Iq for submit <at> debbugs.gnu.org; Sun, 30 Nov 2025 05:39:30 -0500 Received: from mail-24431.protonmail.ch ([109.224.244.31]:35933) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <heimeborgia@HIDDEN>) id 1vPepv-00052O-5E for 79906 <at> debbugs.gnu.org; Sun, 30 Nov 2025 05:39:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1764499156; x=1764758356; bh=9mP/nRsuotYQh/VDRszbxGgW9dX+DaJw46IaDnlki2w=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=RD5YK/ESglfZblexG3o+cXLOm9KRuP3x9Vr2eqSW9MJwVmmY7ruBBPVn8qMGemuPz PuQCrD9p2my/+ByVGli/iKYrwEoUcllU+818v1QCEwbVHeCzlVgaUTqDvviWVeGZ+x FP1NNkllGQ3t9FVb4UX+hiCMhwZnS9dZLiYXa/s07jaklLoBDhq6ybZ54CrIMa19lc CLj2xh6dFkExmfBgeopMDFofOStcvJ+t+Ky+gUqo1JucogA2LmtAiqmCgKJtMdifhf cY1hpN5XES+H3Gr/knzDjbmB3FdP/Nqu1xEIpxa16vMo/RDdtmyBUZI7cmHmus5sfs 6DhcSxR3Z44AA== Date: Sun, 30 Nov 2025 10:39:14 +0000 To: Eli Zaretskii <eliz@HIDDEN> From: Heime <heimeborgia@HIDDEN> Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change Message-ID: <CE0imzS3nrniu6mKO0nE5iCouIJwtKe8J1C_M9faxe5k-d7eOf3ZMMqdVxwvidfUuEj6M9ljhWTCo7YblgsdnosgqUS-x7kimlau5WTnOKY=@protonmail.com> In-Reply-To: <86ldjp8anm.fsf@HIDDEN> References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <86345y9xpy.fsf@HIDDEN> <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> <86wm3a8c18.fsf@HIDDEN> <a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com> <86pl9284lc.fsf@HIDDEN> <GR1JhM2N_J6IGOvFYBlkcVp9gulPSCZeada0lMaVKo4Nz7xrhoTgPVYlsTjUFSAyUeC16g24db-a-2NO_sEEyCzEuR4YQaaXpY6_Vzc-JkA=@protonmail.com> <86o6ol8f9b.fsf@HIDDEN> <86ldjp8anm.fsf@HIDDEN> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: dfe89466764e6dd2095d4a8ae8b45e85b53d0c46 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Saturday, November 29th, 2025 at 9:13 PM, Eli Zaretskii <eliz@HIDDEN> w= rote: > > Cc: 79906 <at> debbugs.gnu.org >=20 > > Date: Sat, 29 Nov 2025 09:33:20 +0200 > > From: Eli Zaretskii eliz@HIDDEN > >=20 > > > Date: Fri, 28 Nov 2025 17:56:52 +0000 > > > From: Heime heimeborgia@HIDDEN > > > Cc: 79906 <at> debbugs.gnu.org > > >=20 > > > First I call the function with family STIX selecting > > > font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal no= rmal 0 nil nil 0> > > >=20 > > > Then I rerun using option default, which gives me > > > Invalid face attribute :font nil > >=20 > > There is no font or font family named "default", so this is just a > > cockpit error, AFAIU. > >=20 > > > Then rerunning again with family STIX selecting > > > font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal no= rmal 0 nil nil 0> > > >=20 > > > gives > > >=20 > > > Invalid face attribute :font nil [416 times] > > >=20 > > > When I try to scale I get more > > >=20 > > > Invalid face attribute :font nil [416 times] > >=20 > > Once you set a non-existing font "default", these errors will > > continue. Don't do that. >=20 >=20 > Note that you are calling buffer-face-mode-invoke with a font-entity > object: >=20 > #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0 nil= nil 0> >=20 >=20 > whereas what it wants is a font-spec object. So either use > font-face-attributes to generate an object of the correct type and > form, or (better) use (font-spec :family FAMILY), where FAMILY is > selected by the user, without asking the user to also select a font > from the family (which could only confuse users and cause incorrect > results). I could not get the font-face-attributes docstring with Emacs 30.0.92. If I use just the family, the user would not be able to choose whether it is regular, bold, italic as can be done with Options-SetDefaultFont. =20 > There is another problem is in your function, here: >=20 > (let ( (fsrp (completing-read > "Font Sel: " fsrpl nil t)) ) > ;; Convert font string back to font object > (list (seq-find > (lambda (f) (string=3D (format "%s" f) fsrp)) > fntl))) >=20 > The call to seq-find can return nil, and your code doesn't check for > that. >=20 > One other, more significant, problem is here: >=20 > (if font > ;; Apply font to the current buffer > (buffer-face-mode 1) > (buffer-face-mode-invoke `(:font ,font) t) ;; Disable buffer-face-mode (n= il,reset) (buffer-face-mode -1)))=20 > I think you meant this instead:=20 I agree. > (if font ;; Apply font to the current buffer=20 > (progn (buffer-face-mode 1) (buffer-face-mode-invoke` (:font ,font) t)) > ;; Disable buffer-face-mode (nil,reset) > (buffer-face-mode -1))) Does one require (buffer-face-mode 1) before buffer-face-mode-invoke, does the latter activate buffer-face-mode? =20 > IOW, your program has multiple unresolved problems, so you should fix > them, and only then consider the possibility that there's a bug in > Emacs. >=20 > FWIW, the call >=20 > (buffer-face-mode-invoke (list :font (font-spec :family "Cascadia Code"))= t) >=20 > succeeds here and produces the expected effect, so the basic > functionality works, and the problems are entirely in how your > function calls the relevant APIs. >
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.
Received: (at 79906) by debbugs.gnu.org; 29 Nov 2025 09:12:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 29 04:12:56 2025
Received: from localhost ([127.0.0.1]:54175 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1vPH0i-0003ye-2h
for submit <at> debbugs.gnu.org; Sat, 29 Nov 2025 04:12:56 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42240)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vPH0f-0003yM-Gr
for 79906 <at> debbugs.gnu.org; Sat, 29 Nov 2025 04:12:54 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
id 1vPH0a-0006F2-7M; Sat, 29 Nov 2025 04:12:48 -0500
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=zD33HxYJxTzgeVL+b28eOZ6wCF6wTk/Fpe7aTZs/b9g=; b=QoruMc6A1on4
zId4dAcv6y4ohRkrLNOFS7SjSkN//j4fEkCRl+L1M/U312QKfjrR4vyHkS8MxOsQsY5UvCmpoazRH
0kh7kWwzG97DH+IVM0YKISgVS1tj+0PTUyjQglxWrdvQg8ErNH7uroEZzA/eJPqYbqzkgkde7ldbI
vJk/x5nA0MoXAD3gFBu7BSXrC3wwfIhAxXqbKPnWdIxb1+MTSU+5f+GCVlgHjYbQUkrHZStpkUGq0
1trO9m5oKMXmHLzy/Z+CD7nT54a2yUIj7NlRa25/4QA9bgydsmEG4Gc+AfIcmjnl3djiyAfRn7cpB
5gbs5gymXOiK9xS0zammDA==;
Date: Sat, 29 Nov 2025 11:12:45 +0200
Message-Id: <86ldjp8anm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: heimeborgia@HIDDEN
In-Reply-To: <86o6ol8f9b.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 29
Nov 2025 09:33:20 +0200)
Subject: Re: bug#79906: buffer-face-mode causes box glyphs with
text-scale-adjust after font change
References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com>
<865xau9yfl.fsf@HIDDEN>
<5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com>
<86345y9xpy.fsf@HIDDEN>
<uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com>
<86wm3a8c18.fsf@HIDDEN>
<a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com>
<86pl9284lc.fsf@HIDDEN>
<GR1JhM2N_J6IGOvFYBlkcVp9gulPSCZeada0lMaVKo4Nz7xrhoTgPVYlsTjUFSAyUeC16g24db-a-2NO_sEEyCzEuR4YQaaXpY6_Vzc-JkA=@protonmail.com>
<86o6ol8f9b.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79906
Cc: 79906 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> Cc: 79906 <at> debbugs.gnu.org
> Date: Sat, 29 Nov 2025 09:33:20 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
>
> > Date: Fri, 28 Nov 2025 17:56:52 +0000
> > From: Heime <heimeborgia@HIDDEN>
> > Cc: 79906 <at> debbugs.gnu.org
> >
> > First I call the function with family STIX selecting
> > font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0 nil nil 0>
> >
> > Then I rerun using option default, which gives me
> > Invalid face attribute :font nil
>
> There is no font or font family named "default", so this is just a
> cockpit error, AFAIU.
>
> > Then rerunning again with family STIX selecting
> > font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0 nil nil 0>
> >
> > gives
> >
> > Invalid face attribute :font nil [416 times]
> >
> > When I try to scale I get more
> >
> > Invalid face attribute :font nil [416 times]
>
> Once you set a non-existing font "default", these errors will
> continue. Don't do that.
Note that you are calling buffer-face-mode-invoke with a font-entity
object:
#<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0 nil nil 0>
whereas what it wants is a font-spec object. So either use
font-face-attributes to generate an object of the correct type and
form, or (better) use (font-spec :family FAMILY), where FAMILY is
selected by the user, without asking the user to also select a font
from the family (which could only confuse users and cause incorrect
results).
There is another problem is in your function, here:
(let ( (fsrp (completing-read
"Font Sel: " fsrpl nil t)) )
;; Convert font string back to font object
(list (seq-find
(lambda (f) (string= (format "%s" f) fsrp))
fntl)))
The call to seq-find can return nil, and your code doesn't check for
that.
One other, more significant, problem is here:
(if font
;; Apply font to the current buffer
(buffer-face-mode 1)
(buffer-face-mode-invoke `(:font ,font) t)
;; Disable buffer-face-mode (nil,reset)
(buffer-face-mode -1)))
I think you meant this instead:
(if font
;; Apply font to the current buffer
(progn
(buffer-face-mode 1)
(buffer-face-mode-invoke `(:font ,font) t))
;; Disable buffer-face-mode (nil,reset)
(buffer-face-mode -1)))
IOW, your program has multiple unresolved problems, so you should fix
them, and only then consider the possibility that there's a bug in
Emacs.
FWIW, the call
(buffer-face-mode-invoke (list :font (font-spec :family "Cascadia Code")) t)
succeeds here and produces the expected effect, so the basic
functionality works, and the problems are entirely in how your
function calls the relevant APIs.
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 29 Nov 2025 07:33:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 29 02:33:40 2025 Received: from localhost ([127.0.0.1]:53694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vPFSe-0007JW-4a for submit <at> debbugs.gnu.org; Sat, 29 Nov 2025 02:33:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46934) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vPFSa-0007JG-VX for 79906 <at> debbugs.gnu.org; Sat, 29 Nov 2025 02:33:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vPFSM-0001X0-TL; Sat, 29 Nov 2025 02:33:30 -0500 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=jMOujtFpZyJhCOUcaaxL9TrG3OrDYuTlK2lxHsMkFHY=; b=TmBqhjfv5s4P FVtwp8lqxvEluyfLujZ9BOWmxp6wed9wljhVL7YL/ouUy1721cFC25AxhTUcFAmM/ScFPjohctPN4 YcKm+jI6HKyzymyHBO47SJnthzv0UG7rCxbtxgjz934fy+TZrqXYN2TxCtz+e+TUSEo1Lqk777vIS /H7QZ6c8EC7OwHK3Xp1BdENRqtS4LemhfgT1z5dTX7dH56YxSSxwSYWWLW+r7yu8/2fYJK0CF0AdN p5oOY3QXdCSh75Xu8mMvyUhWNKyA0oVbWVFhmH8K0c9Ax13cFxUU3CVtzn+yjp8XKXp3zezpKI6n0 X/BGcc1eJUOEbrLoJ7FxoQ==; Date: Sat, 29 Nov 2025 09:33:20 +0200 Message-Id: <86o6ol8f9b.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Heime <heimeborgia@HIDDEN> In-Reply-To: <GR1JhM2N_J6IGOvFYBlkcVp9gulPSCZeada0lMaVKo4Nz7xrhoTgPVYlsTjUFSAyUeC16g24db-a-2NO_sEEyCzEuR4YQaaXpY6_Vzc-JkA=@protonmail.com> (message from Heime on Fri, 28 Nov 2025 17:56:52 +0000) Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <865xau9yfl.fsf@HIDDEN> <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> <86345y9xpy.fsf@HIDDEN> <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> <86wm3a8c18.fsf@HIDDEN> <a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com> <86pl9284lc.fsf@HIDDEN> <GR1JhM2N_J6IGOvFYBlkcVp9gulPSCZeada0lMaVKo4Nz7xrhoTgPVYlsTjUFSAyUeC16g24db-a-2NO_sEEyCzEuR4YQaaXpY6_Vzc-JkA=@protonmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Fri, 28 Nov 2025 17:56:52 +0000 > From: Heime <heimeborgia@HIDDEN> > Cc: 79906 <at> debbugs.gnu.org > > First I call the function with family STIX selecting > font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0 nil nil 0> > > Then I rerun using option default, which gives me > Invalid face attribute :font nil There is no font or font family named "default", so this is just a cockpit error, AFAIU. > Then rerunning again with family STIX selecting > font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0 nil nil 0> > > gives > > Invalid face attribute :font nil [416 times] > > When I try to scale I get more > > Invalid face attribute :font nil [416 times] Once you set a non-existing font "default", these errors will continue. Don't do that.
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 17:57:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 12:57:07 2025 Received: from localhost ([127.0.0.1]:48486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vP2iQ-00007s-CA for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 12:57:07 -0500 Received: from mail-43166.protonmail.ch ([185.70.43.166]:59717) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <heimeborgia@HIDDEN>) id 1vP2iN-00007I-7Z for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 12:57:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1764352617; x=1764611817; bh=0jtkMhjF4AXHt5IFHw8tDLav7Y8utyOS7NlqvmXxWiE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ar4iuEiZZx5wtLr7O/R3Ec5kbOuX4b12V5dBxyWu0aE8WMVlDtIjOszyf1w06jyDM O9Vq35UWZAeuvbE2tI9TQJyScsxtVo78TnIekW67cVZaKkJ5+9pIMXRuK7HqS3gCj7 8MM7101113mpUbdFSBXATkRReEtXnNGuCW7QZt4ypPYiOGje0U+9Em97Zuqq/4jOQK 6aahn//q7FdV0d/52kgC0iYkr6HaBjCNNOufo40E6vx15DiugB7Ig1k3LVisGvhUHR 9p5hUabfKHE2qQPpPvQ//woPBAKraXkusZZ5BEVkKr/KPOiVFjwWcwNko+d7l4AdkR cUVT48wWHVDAQ== Date: Fri, 28 Nov 2025 17:56:52 +0000 To: Eli Zaretskii <eliz@HIDDEN> From: Heime <heimeborgia@HIDDEN> Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change Message-ID: <GR1JhM2N_J6IGOvFYBlkcVp9gulPSCZeada0lMaVKo4Nz7xrhoTgPVYlsTjUFSAyUeC16g24db-a-2NO_sEEyCzEuR4YQaaXpY6_Vzc-JkA=@protonmail.com> In-Reply-To: <86pl9284lc.fsf@HIDDEN> References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <865xau9yfl.fsf@HIDDEN> <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> <86345y9xpy.fsf@HIDDEN> <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> <86wm3a8c18.fsf@HIDDEN> <a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com> <86pl9284lc.fsf@HIDDEN> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 18d77ee6c3c0bc4a1e35cee721066bbb08538f38 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Saturday, November 29th, 2025 at 5:12 AM, Eli Zaretskii <eliz@HIDDEN> w= rote: > > Date: Fri, 28 Nov 2025 15:48:22 +0000 >=20 > > From: Heime heimeborgia@HIDDEN > > Cc: 79906 <at> debbugs.gnu.org > >=20 > > Sent with Proton Mail secure email. > >=20 > > On Saturday, November 29th, 2025 at 2:32 AM, Eli Zaretskii eliz@HIDDEN= wrote: > >=20 > > > > Date: Fri, 28 Nov 2025 12:43:02 +0000 > > >=20 > > > > From: Heime heimeborgia@HIDDEN > > > > Cc: 79906 <at> debbugs.gnu.org > > > >=20 > > > > On Friday, November 28th, 2025 at 11:58 PM, Eli Zaretskii eliz@gnu.= org wrote: > > > >=20 > > > > > > Date: Fri, 28 Nov 2025 11:46:05 +0000 > > > > >=20 > > > > > > From: Heime heimeborgia@HIDDEN > > > > > > Cc: 79906 <at> debbugs.gnu.org > > > > > >=20 > > > > > > On Friday, November 28th, 2025 at 11:42 PM, Eli Zaretskii eliz@= gnu.org wrote: > > > > > >=20 > > > > > > > > Date: Fri, 28 Nov 2025 09:55:08 +0000 > > > > > > >=20 > > > > > > > > From: Heime via "Bug reports for GNU Emacs, > > > > > > > > the Swiss army knife of text editors" bug-gnu-emacs@HIDDEN > > > > > > > >=20 > > > > > > > > When I change the font using buffer-face-mode-invoke, I get= a set of boxes > > > > > > > > when I use text scale with text-scale-adjust or mouse. > > > > > > >=20 > > > > > > > This most probably means you used a font that cannot support = ASCII and > > > > > > > Latin characters (in which case this isn't an Emacs bug, this= is your > > > > > > > mistake). In any case, please show a complete recipe for repr= oducing > > > > > > > the problem starting from "emacs -Q". > > > > > >=20 > > > > > > I changed the font and the code is properly displayed. Only whe= n the scale > > > > > > changes does the problem occur. When I revert to the original s= cale, the > > > > > > text is displayed correctly again. > > > > >=20 > > > > > Which font is that? And how did you tell Emacs to use it? > > > > >=20 > > > > > Once again, please show a full detailed recipe starting from "ema= cs -Q". > > > >=20 > > > > Here is the function. If I select a STIX font variant, contrary to > > > > expectation, the modeline font also gets changed. > > >=20 > > > And which font causes empty boxes to be displayed when you change the > > > text scale? > >=20 > > Have not figured out what replicates it. Have also seen that some Mono > > fonts like "Tlwg Mono" and "Liberation Mono" do not scale at all. > >=20 > > I also get errors > >=20 > > font: #<font-entity ftcrhb urw Nimbus\ Mono\ PS nil iso10646-1 bold ita= lic normal 0 nil 100 0> > > Invalid face attribute :font nil [114 times] > > default-line-height: Wrong type argument: stringp, nilInvalid face attr= ibute :font nil [3 times] > > Invalid face attribute :font nil [6 times] > > default-line-height: Wrong type argument: stringp, nilInvalid face attr= ibute :font nil [3 times] > > Invalid face attribute :font nil [4 times] > > default-line-height: Wrong type argument: stringp, nilInvalid face attr= ibute :font nil [13 times] > > default-line-height: Wrong type argument: stringp, nil >=20 >=20 > I need a full recipe, that is the complete description of all the > steps after starting "emacs -Q", which leads to each of these > problems. That includes the font(s) which you choose using your > function, and which then lead to the above error messages. So far, > you have presented only some of the pieces of the puzzle, and it is > impossible to investigate given the information you provided, because > there are gaps that cannot be filled. First I call the function with family STIX selecting font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0= nil nil 0> Then I rerun using option default, which gives me Invalid face attribute :font nil Then rerunning again with family STIX selecting font: #<font-entity ftcrhb STIX STIX nil iso10646-1 regular normal normal 0= nil nil 0> gives Invalid face attribute :font nil [416 times] When I try to scale I get more Invalid face attribute :font nil [416 times]
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 17:11:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 12:11:38 2025 Received: from localhost ([127.0.0.1]:48249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vP20P-00068A-Rf for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 12:11:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37344) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vP20N-00067v-4I for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 12:11:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vP20H-0000SZ-ME; Fri, 28 Nov 2025 12:11:29 -0500 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=Yizt5divtqqJYleuep1ofhoPlzb4E/WuInt+RR92TfM=; b=QfPH6e1oRq6b +sqKj9Q8o96LmOWd8ZqAVnYzKKHqqGQ8itPuNrv9lZyxMOQ57Zqe2hhnDEA56ipOLCKh9a9vUQYO6 pc7lkGFrLJLQVST1GidjYiaSZfKqP96FLQjp1c1aQNybcVe62zQjGJQSGyqWSWethBuvDdM+WeI5R 5ySoFPdIYtoHl2YIlKL25Va348peQ9PHAK3dTry3keN0rf/fTnUEaB6UjOync8tP6/gUo6ZZCkm1k lWia3vRdeyc+fjMfnkGrMqfawpKbajLjgkHmoC4mokAs+XcCJ3x/8s4KWewUB8xlAA3nGvH2IDlfm 0+J7MSC3eaVjpevfFAGIZA==; Date: Fri, 28 Nov 2025 19:11:27 +0200 Message-Id: <86pl9284lc.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Heime <heimeborgia@HIDDEN> In-Reply-To: <a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com> (message from Heime on Fri, 28 Nov 2025 15:48:22 +0000) Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <865xau9yfl.fsf@HIDDEN> <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> <86345y9xpy.fsf@HIDDEN> <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> <86wm3a8c18.fsf@HIDDEN> <a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Fri, 28 Nov 2025 15:48:22 +0000 > From: Heime <heimeborgia@HIDDEN> > Cc: 79906 <at> debbugs.gnu.org > > > > > > > Sent with Proton Mail secure email. > > On Saturday, November 29th, 2025 at 2:32 AM, Eli Zaretskii <eliz@HIDDEN> wrote: > > > > > > > > Date: Fri, 28 Nov 2025 12:43:02 +0000 > > > > > From: Heime heimeborgia@HIDDEN > > > Cc: 79906 <at> debbugs.gnu.org > > > > > > On Friday, November 28th, 2025 at 11:58 PM, Eli Zaretskii eliz@HIDDEN wrote: > > > > > > > > Date: Fri, 28 Nov 2025 11:46:05 +0000 > > > > > > > > > From: Heime heimeborgia@HIDDEN > > > > > Cc: 79906 <at> debbugs.gnu.org > > > > > > > > > > On Friday, November 28th, 2025 at 11:42 PM, Eli Zaretskii eliz@HIDDEN wrote: > > > > > > > > > > > > Date: Fri, 28 Nov 2025 09:55:08 +0000 > > > > > > > > > > > > > From: Heime via "Bug reports for GNU Emacs, > > > > > > > the Swiss army knife of text editors" bug-gnu-emacs@HIDDEN > > > > > > > > > > > > > > When I change the font using buffer-face-mode-invoke, I get a set of boxes > > > > > > > when I use text scale with text-scale-adjust or mouse. > > > > > > > > > > > > This most probably means you used a font that cannot support ASCII and > > > > > > Latin characters (in which case this isn't an Emacs bug, this is your > > > > > > mistake). In any case, please show a complete recipe for reproducing > > > > > > the problem starting from "emacs -Q". > > > > > > > > > > I changed the font and the code is properly displayed. Only when the scale > > > > > changes does the problem occur. When I revert to the original scale, the > > > > > text is displayed correctly again. > > > > > > > > Which font is that? And how did you tell Emacs to use it? > > > > > > > > Once again, please show a full detailed recipe starting from "emacs -Q". > > > > > > Here is the function. If I select a STIX font variant, contrary to > > > expectation, the modeline font also gets changed. > > > > > > And which font causes empty boxes to be displayed when you change the > > text scale? > > > Have not figured out what replicates it. Have also seen that some *Mono* > fonts like "Tlwg Mono" and "Liberation Mono" do not scale at all. > > I also get errors > > font: #<font-entity ftcrhb urw Nimbus\ Mono\ PS nil iso10646-1 bold italic normal 0 nil 100 0> > Invalid face attribute :font nil [114 times] > default-line-height: Wrong type argument: stringp, nilInvalid face attribute :font nil [3 times] > Invalid face attribute :font nil [6 times] > default-line-height: Wrong type argument: stringp, nilInvalid face attribute :font nil [3 times] > Invalid face attribute :font nil [4 times] > default-line-height: Wrong type argument: stringp, nilInvalid face attribute :font nil [13 times] > default-line-height: Wrong type argument: stringp, nil I need a full recipe, that is the complete description of all the steps after starting "emacs -Q", which leads to each of these problems. That includes the font(s) which you choose using your function, and which then lead to the above error messages. So far, you have presented only some of the pieces of the puzzle, and it is impossible to investigate given the information you provided, because there are gaps that cannot be filled.
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 15:48:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 10:48:39 2025 Received: from localhost ([127.0.0.1]:47823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vP0i6-0001fC-Ve for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 10:48:39 -0500 Received: from mail-24427.protonmail.ch ([109.224.244.27]:10065) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <heimeborgia@HIDDEN>) id 1vP0i2-0001et-5u for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 10:48:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1764344907; x=1764604107; bh=SAiiugsBv17JriqRQatBK1vDWeJjch7NXzJUYP2i5TQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=eRtChOZLLEQzlS5CDrjfpBqRfEuO1xFl+g57sFNBCBU7SrvcCMN5uhzT8zUEjygPG XrGm2u17dll/o7ZZsSEbpNk2bzCX/bNwrbjL1tQMd+wWljEUa8f4JkuuXPcKUGugUE 9+EIvVAQxE1s2TnZfpNBS4dfQFpW1XIX04RfJDBUuX0PKO2FladCKYrRun2SYais4v xrv88FrmPsuiyfa2ansf7aW3+TjOgU9K9pb2I+lx8pw5WwKKYsWb0mXq9tvr7ON2H0 MrbEeyaMzbWLapxuFxkvaQ62M0Obrl6wLjOUMROHHdoaPmejae3ZvgQ5V5rimiwj2b B+4SfnsYMBwwA== Date: Fri, 28 Nov 2025 15:48:22 +0000 To: Eli Zaretskii <eliz@HIDDEN> From: Heime <heimeborgia@HIDDEN> Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change Message-ID: <a7psJbm2EE1grb3vtmnYdhf0bs0cpoe0YejwAl6osgwiFdN5Hkz7i1EZuj-dAmRusZeUGZbGuDDalSab2k7sug6_yKWFH5e9QeFQ5vLnLV8=@protonmail.com> In-Reply-To: <86wm3a8c18.fsf@HIDDEN> References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <865xau9yfl.fsf@HIDDEN> <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> <86345y9xpy.fsf@HIDDEN> <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> <86wm3a8c18.fsf@HIDDEN> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 8314682e0ec7ebe055b6c081075321432f242412 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Sent with Proton Mail secure email. On Saturday, November 29th, 2025 at 2:32 AM, Eli Zaretskii <eliz@HIDDEN> w= rote: >=20 >=20 > > Date: Fri, 28 Nov 2025 12:43:02 +0000 >=20 > > From: Heime heimeborgia@HIDDEN > > Cc: 79906 <at> debbugs.gnu.org > >=20 > > On Friday, November 28th, 2025 at 11:58 PM, Eli Zaretskii eliz@HIDDEN = wrote: > >=20 > > > > Date: Fri, 28 Nov 2025 11:46:05 +0000 > > >=20 > > > > From: Heime heimeborgia@HIDDEN > > > > Cc: 79906 <at> debbugs.gnu.org > > > >=20 > > > > On Friday, November 28th, 2025 at 11:42 PM, Eli Zaretskii eliz@gnu.= org wrote: > > > >=20 > > > > > > Date: Fri, 28 Nov 2025 09:55:08 +0000 > > > > >=20 > > > > > > From: Heime via "Bug reports for GNU Emacs, > > > > > > the Swiss army knife of text editors" bug-gnu-emacs@HIDDEN > > > > > >=20 > > > > > > When I change the font using buffer-face-mode-invoke, I get a s= et of boxes > > > > > > when I use text scale with text-scale-adjust or mouse. > > > > >=20 > > > > > This most probably means you used a font that cannot support ASCI= I and > > > > > Latin characters (in which case this isn't an Emacs bug, this is = your > > > > > mistake). In any case, please show a complete recipe for reproduc= ing > > > > > the problem starting from "emacs -Q". > > > >=20 > > > > I changed the font and the code is properly displayed. Only when th= e scale > > > > changes does the problem occur. When I revert to the original scale= , the > > > > text is displayed correctly again. > > >=20 > > > Which font is that? And how did you tell Emacs to use it? > > >=20 > > > Once again, please show a full detailed recipe starting from "emacs -= Q". > >=20 > > Here is the function. If I select a STIX font variant, contrary to > > expectation, the modeline font also gets changed. >=20 >=20 > And which font causes empty boxes to be displayed when you change the > text scale? Have not figured out what replicates it. Have also seen that some *Mono* fonts like "Tlwg Mono" and "Liberation Mono" do not scale at all. I also get errors=20 font: #<font-entity ftcrhb urw Nimbus\ Mono\ PS nil iso10646-1 bold italic = normal 0 nil 100 0> Invalid face attribute :font nil [114 times] default-line-height: Wrong type argument: stringp, nilInvalid face attribut= e :font nil [3 times] Invalid face attribute :font nil [6 times] default-line-height: Wrong type argument: stringp, nilInvalid face attribut= e :font nil [3 times] Invalid face attribute :font nil [4 times] default-line-height: Wrong type argument: stringp, nilInvalid face attribut= e :font nil [13 times] default-line-height: Wrong type argument: stringp, nil
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 14:31:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 09:31:22 2025 Received: from localhost ([127.0.0.1]:46472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vOzVJ-0005Ur-9t for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 09:31:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49908) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vOzVF-0005Ub-Vz for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 09:31:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vOzV9-0001sB-Jo; Fri, 28 Nov 2025 09:31:12 -0500 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=8OKxt4U7TKe8HVuDB78fU9bpqa69/zy62QG94ubgvGs=; b=KkdjIgd+UFuP KB5VB/Wg67gjdMc8ZiPPHi+oYlyH3WflXVY+YXerjUzvEdcgitH9RfjlZ/bdeWyy+xUko7HRn+Znx uhvTakMzIrkYCxGe4L2nWV0KjASopfvN2MM7x4zyT62NyZ2FusmDcn7dwE9pRCLAwU8I+zmawW7wk 9ZF9muwJ0pjxN3NWXzqQdwQzqF+gGO8qcehaUsoI9vi1FZa3v20dBFd2/y1xElmdFa7Z0JWe+rRVR kbnLgmsojVFy/3ZFq3Lf276/5OTp89MPdCqTT3i222+IrtTOb9i9hFZDoRT7DV+MOZdnHPXu9/xNf ExSvxG7Ig6tYgL4cI0BX9g==; Date: Fri, 28 Nov 2025 16:30:43 +0200 Message-Id: <86wm3a8c18.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Heime <heimeborgia@HIDDEN> In-Reply-To: <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> (message from Heime on Fri, 28 Nov 2025 12:43:02 +0000) Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <865xau9yfl.fsf@HIDDEN> <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> <86345y9xpy.fsf@HIDDEN> <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Fri, 28 Nov 2025 12:43:02 +0000 > From: Heime <heimeborgia@HIDDEN> > Cc: 79906 <at> debbugs.gnu.org > > > On Friday, November 28th, 2025 at 11:58 PM, Eli Zaretskii <eliz@HIDDEN> wrote: > > > > Date: Fri, 28 Nov 2025 11:46:05 +0000 > > > > > From: Heime heimeborgia@HIDDEN > > > Cc: 79906 <at> debbugs.gnu.org > > > > > > On Friday, November 28th, 2025 at 11:42 PM, Eli Zaretskii eliz@HIDDEN wrote: > > > > > > > > Date: Fri, 28 Nov 2025 09:55:08 +0000 > > > > > > > > > From: Heime via "Bug reports for GNU Emacs, > > > > > the Swiss army knife of text editors" bug-gnu-emacs@HIDDEN > > > > > > > > > > When I change the font using buffer-face-mode-invoke, I get a set of boxes > > > > > when I use text scale with text-scale-adjust or mouse. > > > > > > > > This most probably means you used a font that cannot support ASCII and > > > > Latin characters (in which case this isn't an Emacs bug, this is your > > > > mistake). In any case, please show a complete recipe for reproducing > > > > the problem starting from "emacs -Q". > > > > > > I changed the font and the code is properly displayed. Only when the scale > > > changes does the problem occur. When I revert to the original scale, the > > > text is displayed correctly again. > > > > > > Which font is that? And how did you tell Emacs to use it? > > > > Once again, please show a full detailed recipe starting from "emacs -Q". > > Here is the function. If I select a STIX font variant, contrary to > expectation, the modeline font also gets changed. And which font causes empty boxes to be displayed when you change the text scale?
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.
Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 12:43:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 07:43:20 2025
Received: from localhost ([127.0.0.1]:45696 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1vOxom-0007dg-0f
for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 07:43:20 -0500
Received: from mail-10696.protonmail.ch ([79.135.106.96]:25233)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <heimeborgia@HIDDEN>)
id 1vOxoi-0007dL-Gr
for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 07:43:17 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail3; t=1764333788; x=1764592988;
bh=3Jwn3gniCvoD8aamyOGuPl6KeFLusgyfG+flMXjTXv4=;
h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
Message-ID:BIMI-Selector;
b=R3mHY3+Ho1AJcsHKf/sCRY0vaV0Cum2A2+1FmK5d3eH4pfmmODZyZzlCL73y0GA7v
3pqEyKBLQ/TVfFTHImzb3fCjEWN77tcl+Ceay+cbipviOkx++Qrfkx4iQ4nZd5doVw
rOBShEutxlI4Wo7NZuWh331PsIpj1HFCxtpSz03RCRGnso2ztpW94MbAoEsQY/YfC2
jz3eiKzxTS3MfeQ25DZX2ucXy0s9lLPFxSQWjQysshPdhEP0FrtrRAKTZaOkmVuX1X
SvmEXDXo4PLARNioUxmk7xgZUtu0d3XGL7W6GhD9x7ADEJMjORmOJKQt2MC1qkttpp
XqCvyZwLJhAZA==
Date: Fri, 28 Nov 2025 12:43:02 +0000
To: Eli Zaretskii <eliz@HIDDEN>
From: Heime <heimeborgia@HIDDEN>
Subject: Re: bug#79906: buffer-face-mode causes box glyphs with
text-scale-adjust after font change
Message-ID: <uZ1m1OHScsd2HQq3zJZAg6Pf2fAELN8TIzO9jlLaP7EvQPWuQI2ZHMBtz6xEn5aRXxknBg9Ef5vdthaLOX_Kfp_T4LxQxGfFn68PGd-0S20=@protonmail.com>
In-Reply-To: <86345y9xpy.fsf@HIDDEN>
References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com>
<865xau9yfl.fsf@HIDDEN>
<5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com>
<86345y9xpy.fsf@HIDDEN>
Feedback-ID: 57735886:user:proton
X-Pm-Message-ID: aae21860e281d2935bd669cdf881064452c8dcde
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79906
Cc: 79906 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
On Friday, November 28th, 2025 at 11:58 PM, Eli Zaretskii <eliz@HIDDEN> wr=
ote:
> > Date: Fri, 28 Nov 2025 11:46:05 +0000
>=20
> > From: Heime heimeborgia@HIDDEN
> > Cc: 79906 <at> debbugs.gnu.org
> >=20
> > On Friday, November 28th, 2025 at 11:42 PM, Eli Zaretskii eliz@HIDDEN =
wrote:
> >=20
> > > > Date: Fri, 28 Nov 2025 09:55:08 +0000
> > >=20
> > > > From: Heime via "Bug reports for GNU Emacs,
> > > > the Swiss army knife of text editors" bug-gnu-emacs@HIDDEN
> > > >=20
> > > > When I change the font using buffer-face-mode-invoke, I get a set o=
f boxes
> > > > when I use text scale with text-scale-adjust or mouse.
> > >=20
> > > This most probably means you used a font that cannot support ASCII an=
d
> > > Latin characters (in which case this isn't an Emacs bug, this is your
> > > mistake). In any case, please show a complete recipe for reproducing
> > > the problem starting from "emacs -Q".
> >=20
> > I changed the font and the code is properly displayed. Only when the sc=
ale
> > changes does the problem occur. When I revert to the original scale, th=
e
> > text is displayed correctly again.
>=20
>=20
> Which font is that? And how did you tell Emacs to use it?
>=20
> Once again, please show a full detailed recipe starting from "emacs -Q".
Here is the function. If I select a STIX font variant, contrary to=20
expectation, the modeline font also gets changed. =20
(defun font-apply (font)
"Apply any available font variant to the current buffer, or
reset to the system default font when default is selected."
=20
(interactive
(let* ( (familt (completing-read "[Rotv] Family: "
(cons "default" (font-family-list)) nil t))
(dflt (string=3D familt "default")) )
(if dflt
(list nil) ; Pass nil to indicate default/reset
;; Allow user to select specific font variant
(let* ( (fntl (list-fonts (font-spec :family familt)))
(fsrpl (mapcar
(lambda (font) (format "%s" font))
=09=09=09 fntl)) )
(if fntl
;; FNTL Non-Empty - Let user specify font=20
(let ( (fsrp (completing-read
"Font Sel: " fsrpl nil t)) )
;; Convert font string back to font object
(list (seq-find
(lambda (f) (string=3D (format "%s" f) fsrp))
fntl)))
;; FNTL Empty
(message "No fonts found for family: %s" familt))))))
;; -------------------------------------------------------------
;; fuente
(message "font: %S" font)
(if font
;; Apply font to the current buffer
(buffer-face-mode 1)
(buffer-face-mode-invoke `(:font ,font) t)
;; Disable buffer-face-mode (nil,reset)
(buffer-face-mode -1)))
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 11:57:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 06:57:08 2025 Received: from localhost ([127.0.0.1]:45283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vOx63-0001rX-R5 for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 06:57:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51888) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vOx61-0001qx-5Y for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 06:57:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vOx5v-0004Hh-Pa; Fri, 28 Nov 2025 06:56:59 -0500 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=Xh2mKvMAYq94H5U9v3DQZMlSAotDOFAcfFKu6HaAkcY=; b=hDS3JUwkNdPG 0pB05vgtw0kDGSFIN+Z6M3iLgQlRIBXFOU/Vvr7z39gT8NMfjcVlOAIjRV4QHAPTsGu+OVx9d72sI 8IsS1ATTyfWTv+op14muIsxxQXahLNmgSetIuqvQ16Rcuz2Ay4JwXr0+RQsJD/O0zeL0zOki50OHZ rD9mtw8lTNR6iLlGgyjoVeXtbg/ulC1FL3eMpUurFEe7043BD2lo5aEsZINDQp2hY7uI9nziJAJYX 2yGgxSlRT68xfL2hNQ1egJjbCY4+KXK4ZxKkaPhQKM5k/xejcSynYt8VxsrA/yFTSmd5u5CoyPYN1 kbFbew4KUlV4tegkP1yl3g==; Date: Fri, 28 Nov 2025 13:56:57 +0200 Message-Id: <86345y9xpy.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Heime <heimeborgia@HIDDEN> In-Reply-To: <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> (message from Heime on Fri, 28 Nov 2025 11:46:05 +0000) Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <865xau9yfl.fsf@HIDDEN> <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Fri, 28 Nov 2025 11:46:05 +0000 > From: Heime <heimeborgia@HIDDEN> > Cc: 79906 <at> debbugs.gnu.org > > On Friday, November 28th, 2025 at 11:42 PM, Eli Zaretskii <eliz@HIDDEN> wrote: > > > > Date: Fri, 28 Nov 2025 09:55:08 +0000 > > > > > From: Heime via "Bug reports for GNU Emacs, > > > the Swiss army knife of text editors" bug-gnu-emacs@HIDDEN > > > > > > When I change the font using buffer-face-mode-invoke, I get a set of boxes > > > when I use text scale with text-scale-adjust or mouse. > > > > > > This most probably means you used a font that cannot support ASCII and > > Latin characters (in which case this isn't an Emacs bug, this is your > > mistake). In any case, please show a complete recipe for reproducing > > the problem starting from "emacs -Q". > > I changed the font and the code is properly displayed. Only when the scale > changes does the problem occur. When I revert to the original scale, the > text is displayed correctly again. Which font is that? And how did you tell Emacs to use it? Once again, please show a full detailed recipe starting from "emacs -Q".
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 11:46:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 06:46:21 2025 Received: from localhost ([127.0.0.1]:45199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vOwvc-0001HA-Nv for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 06:46:21 -0500 Received: from mail-10698.protonmail.ch ([79.135.106.98]:13991) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <heimeborgia@HIDDEN>) id 1vOwva-0001GH-0f for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 06:46:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1764330371; x=1764589571; bh=C0h4fR3GCr+OvjFC1DLnwzv9dqmUc29d3rkq8KfHHIo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=JVAcWR7Bz5uzJYzS9JA1datG09etGwPYpWw2Z5qri35n/k23kU+QT4ZZ+WFkFu0UR HtZaJdfiSSo+Kyzj+ccobHKPYxsv2HurZwC/+PIL8MMn9nhNO977kPcNScsvowGQGn ccmf+SOUN8aqUxWHjRQ+t+qbQTfzNj7YoArSXgs9YumGoiBgo30xpQHhYO4ynCVFPT 00ETISsYO+8NlPzhCgjcVo9Mz4OrHmMNRZ2Rby06iccUe8R5bQlQKw++YzEVsHzTLX iAjfqE8bGRP8D7hSZD4VFB2AF6kWdTv6+XwOojPj5LjrAbE/TPcaw8pT5lIxBjrqSX S1Np3K2FKCwfg== Date: Fri, 28 Nov 2025 11:46:05 +0000 To: Eli Zaretskii <eliz@HIDDEN> From: Heime <heimeborgia@HIDDEN> Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change Message-ID: <5OKA_hnTU551iNSMsDNtcDDR0EKp2MeJgjVgTXtjaHfwdSu0j8LLoqoEMR7jLExdiN-DTUx9UjOnO97MMbX3dYKtttLwsWqtKuUAhZ1epl4=@protonmail.com> In-Reply-To: <865xau9yfl.fsf@HIDDEN> References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> <865xau9yfl.fsf@HIDDEN> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: dc5773bb3f7c6fde69c6342d56c790e50f992bb0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Friday, November 28th, 2025 at 11:42 PM, Eli Zaretskii <eliz@HIDDEN> wr= ote: > > Date: Fri, 28 Nov 2025 09:55:08 +0000 >=20 > > From: Heime via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" bug-gnu-emacs@HIDDEN > >=20 > > When I change the font using buffer-face-mode-invoke, I get a set of bo= xes > > when I use text scale with text-scale-adjust or mouse. >=20 >=20 > This most probably means you used a font that cannot support ASCII and > Latin characters (in which case this isn't an Emacs bug, this is your > mistake). In any case, please show a complete recipe for reproducing > the problem starting from "emacs -Q". I changed the font and the code is properly displayed. Only when the scale changes does the problem occur. When I revert to the original scale, the text is displayed correctly again.
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at 79906) by debbugs.gnu.org; 28 Nov 2025 11:41:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 06:41:47 2025 Received: from localhost ([127.0.0.1]:45152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vOwrC-0000yR-P3 for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 06:41:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58342) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vOwrA-0000yB-2w for 79906 <at> debbugs.gnu.org; Fri, 28 Nov 2025 06:41:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vOwr4-0001pA-MT; Fri, 28 Nov 2025 06:41:38 -0500 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=z8pDLt/ZyQlnqvyg/3Kwq8RKFTCgQOSROaWvpPfWR+Y=; b=bvkY81tTmiFA k9oZ0+2V6J/KdrOzAouFA+RPC4PvOGR6S06kIZwI7IHwwFyso6cyqU9UFOPOFTENwfl1OQNqWvwZi iXhCFhjHh2D0Eby+CFbhixiXC7LRR2T8ErWfZCobWp6FBfgkkpPjunmhEgAebKn5IpYqZKgTE4wzH xPv+fHt+xC8drIYzjMiSPuAggssrVBMXrD47OOiW84ERrv+GAOTKR59iqwVDYkdQtoeal/VyhwB0h nkIpGrvqM/85b3OKTqBCKVAD2uttfpXmwuia/6Ga8Ac4TbPe7FII2nSdSr79WskQU3c19ww5VXj5J FbhC5KD5vle7E8GPlexVAQ==; Date: Fri, 28 Nov 2025 13:41:34 +0200 Message-Id: <865xau9yfl.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Heime <heimeborgia@HIDDEN> In-Reply-To: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#79906: buffer-face-mode causes box glyphs with text-scale-adjust after font change References: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79906 Cc: 79906 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Fri, 28 Nov 2025 09:55:08 +0000 > From: Heime via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > When I change the font using buffer-face-mode-invoke, I get a set of boxes > when I use text scale with text-scale-adjust or mouse. This most probably means you used a font that cannot support ASCII and Latin characters (in which case this isn't an Emacs bug, this is your mistake). In any case, please show a complete recipe for reproducing the problem starting from "emacs -Q".
bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.Received: (at submit) by debbugs.gnu.org; 28 Nov 2025 09:55:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 28 04:55:31 2025 Received: from localhost ([127.0.0.1]:44670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vOvCM-0001m6-Hz for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 04:55:31 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35730) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <heimeborgia@HIDDEN>) id 1vOvCH-0001lQ-OM for submit <at> debbugs.gnu.org; Fri, 28 Nov 2025 04:55:28 -0500 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 <heimeborgia@HIDDEN>) id 1vOvCB-0007FC-OZ for bug-gnu-emacs@HIDDEN; Fri, 28 Nov 2025 04:55:19 -0500 Received: from mail-06.mail-europe.com ([85.9.210.45]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <heimeborgia@HIDDEN>) id 1vOvCA-0001SG-14 for bug-gnu-emacs@HIDDEN; Fri, 28 Nov 2025 04:55:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1764323712; x=1764582912; bh=jXmIvpoChpj+vR26v/F0ZfaMw9SALUShcvBoMbVTdXk=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=eDDXf/FwqnwwIuCbZs44hf5ywv+fXjoXygmP9Z2rIMtv5Cp3k193sQwMlZZp0e93J jIqmhwZeEhpeORQw2V05bzMZ2boGqDWD5zb+oRZvIRIDr5ONbOWeuivQwfXGo/Fz6i 9HORNoIIjMR2+VGYKali6u+2wdvUiS+dLCAZLhEqzJPegmFdM0zh+mvNKZHLwKVHGp owFxh5oNoK2f9ZCm5qprdxfdKqmbZAAjmr74XMsn4idf0tOANxJ56r9o0Jdu4nleVx ebFgk0cq4PGnVwXg/f/iA2l5RsdlAqbtT4dP7dQ9PIbIc2Wcb8982DO4KLjKPeceu+ qRaju21C6t/Wg== Date: Fri, 28 Nov 2025 09:55:08 +0000 To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN> From: Heime <heimeborgia@HIDDEN> Subject: buffer-face-mode causes box glyphs with text-scale-adjust after font change Message-ID: <Dbs9RcvjPI-goGwbUwwzMsE_3PTK-GOZtJWur2rN5To99IRGVQWJIVDbuGvCw6iU2r3cJzUY8Fy2oa8amPWCX-WZYzeD7M_DKJrQR6HasBI=@protonmail.com> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: e8fbd6260ca74348c4577e422986a14660baf18a MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=85.9.210.45; envelope-from=heimeborgia@HIDDEN; helo=mail-06.mail-europe.com 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, FREEMAIL_FROM=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) When I change the font using buffer-face-mode-invoke, I get a set of boxes= =20 when I use text scale with text-scale-adjust or mouse.
Heime <heimeborgia@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#79906; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.