From unknown Sun Jun 22 00:52:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts Resent-From: Rodrigo Morales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2024 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 73777@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.172876027517829 (code B ref -1); Sat, 12 Oct 2024 19:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Oct 2024 19:11:15 +0000 Received: from localhost ([127.0.0.1]:58202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szhWE-0004dS-GP for submit@debbugs.gnu.org; Sat, 12 Oct 2024 15:11:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:50494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szhWB-0004dD-JU for submit@debbugs.gnu.org; Sat, 12 Oct 2024 15:11:12 -0400 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 1szhVv-00068a-0a for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 15:10:55 -0400 Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szhVs-0003Dp-Fi for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 15:10:54 -0400 Received: from mxplan1.mail.ovh.ca (unknown [10.111.58.232]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id 4XQtPF6PMgzHpyn for ; Sat, 12 Oct 2024 16:10:41 -0300 (ADT) Received: from morales.pe (54.39.251.56) by DAG2EX2.mxpca1.local (172.16.2.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 12 Oct 2024 15:10:40 -0400 Authentication-Results: garm.ovh; auth=pass (GARM-94B00189e05b76-c5dd-4c87-9210-2adb80bb89cc, DC706FC122992686D0CB77DC8ED9B16C5FEDDAA5) smtp.auth=rodrigo-mailing-lists@morales.pe X-OVh-ClientIp: 181.65.25.6 From: Rodrigo Morales Date: Sat, 12 Oct 2024 14:10:25 -0500 Message-ID: <87wmiddtni.fsf@morales.pe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [54.39.251.56] X-ClientProxiedBy: DAG2EX2.mxpca1.local (172.16.2.12) To DAG2EX2.mxpca1.local (172.16.2.12) X-Ovh-Tracer-GUID: 4c436b64-1a25-4dac-9fd0-416874724dfd X-Ovh-Tracer-Id: 14533397476568765975 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeguddgudefgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkfggtgfgihesthhqredttddtjeenucfhrhhomheptfhoughrihhgohcuofhorhgrlhgvshcuoehrohgurhhighhoqdhmrghilhhinhhgqdhlihhsthhssehmohhrrghlvghsrdhpvgeqnecuggftrfgrthhtvghrnhepledvtdegvdevteekheegueevgfdtiefghfegjeeiuefggeehheetgfevhffgleetnecuffhomhgrihhnpegrrhgthhhivhgvrdhishdprghrtghhihhvvgdrphhhnecukfhppeduvdejrddtrddtrddupdehgedrfeelrddvhedurdehiedpudekuddrieehrddvhedrieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomheprhhoughrihhgohdqmhgrihhlihhnghdqlhhishhtshesmhhorhgrlhgvshdrphgvpdhnsggprhgtphhtthhopedupdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghdpoffvtefjohhsthepmhhouddvpdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=51.161.45.254; envelope-from=rodrigo-mailing-lists@morales.pe; helo=smtpout1.mo12.mail-out.ovh.ca 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, 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.3 (-) 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 (--) I am using GNU Emacs 29.4 in Ubuntu 22.04.5 LTS. Today, I was trying to change the font size for the character =3D=E2=80=9C= =3D (#x201C, LEFT DOUBLE QUOTATION MARK) using the sexp shown below. I noti= ced an inconsistency: that sexp only sets the size for the character =3D=E2= =80=9C=3D when specific fonts are used. #+BEGIN_SRC elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+END_SRC In the section below, I describe minimal reproducible experiments. In the e= xperiments, I use the file =3D/tmp/a.txt=3D containing the contents of the = code block below: #+HEADER: :tangle /tmp/a.txt #+BEGIN_SRC text a =E2=80=9C b #+END_SRC ** Experiment 1 (:size for #x201C is not set): Set :size for #x201C I started Emacs using the command shown below: #+HEADER: :eval no #+BEGIN_SRC sh ./src/emacs -Q /tmp/a.txt #+END_SRC The code block below shows the font reported for each character by calling = =3Dwhat-cursor-position=3D with a prefix argument. Screenshot: https://arch= ive.is/9LxOH #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC Then, I evaluated the sexp shown below. Upon evaluating it, the size of the= character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) didn't seem to in= crease. The second code block below shows the font reported for each charac= ter by calling =3Dwhat-cursor-position=3D with a prefix argument. Screensho= t: https://archive.ph/rVZSt #+begin_src elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+end_src #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC ** Experiment 2 (:size for #x201C is not set): Pass "Noto Sans Mono 10" to = set-frame-font, then set :size for #x201C I started Emacs using the command shown below: #+HEADER: :eval no #+BEGIN_SRC sh ./src/emacs -Q /tmp/a.txt #+END_SRC First, I evaluated the sexp shown in the first code block below. The second= code block below shows the font reported for each character by calling =3D= what-cursor-position=3D with a prefix argument. Screenshot: https://archive= .ph/PVc8q #+begin_src elisp (set-frame-font "Noto Sans Mono 10" nil t) #+end_src #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC Then, I evaluated the sexp shown below. Upon evaluating it, the size of the= character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) didn't seem to in= crease. The second code block below shows the font reported for each charac= ter by calling =3Dwhat-cursor-position=3D with a prefix argument. Screensho= t: https://archive.is/AIuP0 #+begin_src elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+end_src #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC ** Experiment 3 (:size for #x201C is set): Pass "Fixed 5" to set-frame-font= , then set :family and :size for #x201C I started Emacs using the command shown below: #+HEADER: :eval no #+BEGIN_SRC sh ./src/emacs -Q /tmp/a.txt #+END_SRC First, I evaluated the sexp shown in the first code block below. The second= code block below shows the font reported for each character by calling =3D= what-cursor-position=3D with a prefix argument. Screenshot: https://archive= .is/v4Sr9 #+begin_src elisp (set-frame-font "Fixed 5" nil t) #+end_src #+BEGIN_SRC text a: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x62) =E2=80=9C: ftcrhb:-Misc-Fixed-medium-normal-normal-ja-13-*-*-*-c-120-iso106= 46-1 (#x3A3) b: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x63) #+END_SRC Then, I evaluated the sexp shown below. Upon evaluating it, the size of the= character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) significantly inc= reased. The second code block below shows the font reported for each charac= ter by calling =3Dwhat-cursor-position=3D with a prefix argument. Screensho= t: https://archive.is/KYRGd #+begin_src elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+end_src #+BEGIN_SRC text a: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x62) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-50-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x63) #+END_SRC ** Conclusion When the default font is not changed (see experiment 1) or is set using =3D= (set-frame-font "Noto Sans Mono 10" nil t)=3D (see experiment 2), the sexp = =3D(set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size= 50))=3D didn't seem to increase the size of the character =E2=80=9C (#x201= C, LEFT DOUBLE QUOTATION MARK). When the default font is set using =3D(set-frame-font "Fixed 5" nil t)=3D (= see experiment 3), the sexp =3D(set-fontset-font t ?=E2=80=9C (font-spec :f= amily "Noto Sans Mono" :size 50))=3D significantly increased the size of th= e character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK). To me, the expected behavior is that =3D(set-fontset-font t ?=E2=80=9C (fon= t-spec :family "Noto Sans Mono" :size 50))=3D sets =3D:family=3D and =3D:si= ze=3D for =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) regardless of the = font that is being used. From unknown Sun Jun 22 00:52:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Oct 2024 06:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rodrigo Morales Cc: 73777@debbugs.gnu.org Received: via spool by 73777-submit@debbugs.gnu.org id=B73777.172923289220455 (code B ref 73777); Fri, 18 Oct 2024 06:29:01 +0000 Received: (at 73777) by debbugs.gnu.org; 18 Oct 2024 06:28:12 +0000 Received: from localhost ([127.0.0.1]:36799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1gT5-0005Jr-Qk for submit@debbugs.gnu.org; Fri, 18 Oct 2024 02:28:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1gT2-0005Jb-Al for 73777@debbugs.gnu.org; Fri, 18 Oct 2024 02:28:11 -0400 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 ) id 1t1gSY-0005IB-Qj; Fri, 18 Oct 2024 02:27:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ssph/xlLzWEASrvU+77fgbKR4EfR3KN1U9gXVd+Fx3w=; b=KO/fDLLFmaRmTg2nk+tY msdXUIW748TVF6D2SwVvCNpWhmF7d62OxsILQDIswhs8EGURjZ7t7jSGAL5rMVpVyVzEdBJS/ZZX4 2eMXg9Li03ZV9aWhCBeYeETn3lm9jXfD3eHjCsdGtsif2Q8Tl6KKfXDxwiCXmX4qA1a+cwJ9NE5fE xSvmck21xEMfVyx9aecD3e47JIh3rS5kbtapxRR9fxZLE0oiV5VtoE4dTCAgC5G+yvQP4iF+4T3CM GDgb8E/MKUJ/7u67wCYeNC+ChvzNEniAdXVH5dUv5CK2bqSQqeZtL9DUzwwv6Dsgz3neMP/tieesd zllSy85bCUyJ1Q==; Date: Fri, 18 Oct 2024 09:27:36 +0300 Message-Id: <86iktqncx3.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87wmiddtni.fsf@morales.pe> (message from Rodrigo Morales on Sat, 12 Oct 2024 14:10:25 -0500) References: <87wmiddtni.fsf@morales.pe> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: Rodrigo Morales > Date: Sat, 12 Oct 2024 14:10:25 -0500 > > > I am using GNU Emacs 29.4 in Ubuntu 22.04.5 LTS. > > Today, I was trying to change the font size for the character =“= (#x201C, LEFT DOUBLE QUOTATION MARK) using the sexp shown below. I noticed an inconsistency: that sexp only sets the size for the character =“= when specific fonts are used. > > #+BEGIN_SRC elisp > (set-fontset-font t ?“ (font-spec :family "Noto Sans Mono" :size 50)) > #+END_SRC Before I start digging into how we handle :size in a fontset, I have two questions: . did you reset use-default-font-for-symbols to nil? without that, Emacs prefers to use the default face's font for punctuation and symbols, effectively disregarding the fontsets . which fonts did you find problematic in this case? you say "specific fonts", but it is not clear which fonts exhibit this behavior Thanks. From unknown Sun Jun 22 00:52:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts Resent-From: Rodrigo Morales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2024 00:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Rodrigo Morales Cc: 73777@debbugs.gnu.org Received: via spool by 73777-submit@debbugs.gnu.org id=B73777.172929937225871 (code B ref 73777); Sat, 19 Oct 2024 00:57:02 +0000 Received: (at 73777) by debbugs.gnu.org; 19 Oct 2024 00:56:12 +0000 Received: from localhost ([127.0.0.1]:40543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1xlM-0006jC-0l for submit@debbugs.gnu.org; Fri, 18 Oct 2024 20:56:12 -0400 Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]:52221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1xlK-0006j2-6I for 73777@debbugs.gnu.org; Fri, 18 Oct 2024 20:56:11 -0400 Received: from mxplan1.mail.ovh.ca (unknown [10.111.58.216]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id 4XVjmd4gVCzHpxv; Fri, 18 Oct 2024 21:55:45 -0300 (ADT) Received: from morales.pe (54.39.251.56) by DAG2EX2.mxpca1.local (172.16.2.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 18 Oct 2024 20:55:44 -0400 Authentication-Results: garm.ovh; auth=pass (GARM-94B0017b69e5eb-b397-42f0-9e3e-d961a4f94fef, 05DFB55D969307C52F5ED8FB9617293CD72C487D) smtp.auth=rodrigo-mailing-lists@morales.pe X-OVh-ClientIp: 190.233.209.18 From: Rodrigo Morales In-Reply-To: <86iktqncx3.fsf@gnu.org> References: <87wmiddtni.fsf@morales.pe> <86iktqncx3.fsf@gnu.org> Date: Fri, 18 Oct 2024 19:55:39 -0500 Message-ID: <87ttd8di7o.fsf@morales.pe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [54.39.251.56] X-ClientProxiedBy: DAG2EX2.mxpca1.local (172.16.2.12) To DAG2EX2.mxpca1.local (172.16.2.12) X-Ovh-Tracer-GUID: ca210b4d-e3ce-4096-8e3f-802a25712e09 X-Ovh-Tracer-Id: 256986655500768922 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdehgedggeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtgfhisehtqhertddttdejnecuhfhrohhmpeftohgurhhighhoucfoohhrrghlvghsuceorhhoughrihhgohdqmhgrihhlihhnghdqlhhishhtshesmhhorhgrlhgvshdrphgvqeenucggtffrrghtthgvrhhnpeeffedtgeegjeeujeffteejteejfedvheffhedtleevheekffeliedukeeikeevleenucfkphepuddvjedrtddrtddruddpheegrdefledrvdehuddrheeipdduledtrddvfeefrddvtdelrddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomheprhhoughrihhgohdqmhgrihhlihhnghdqlhhishhtshesmhhorhgrlhgvshdrphgvpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeefjeejjeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhouddvpdhmohguvgepshhmthhpohhuth 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 (-) > . did you reset use-default-font-for-symbols to nil? without that, > Emacs prefers to use the default face's font for punctuation and > symbols, effectively disregarding the fontsets No. I didn't know that the variable use-default-font-for-symbols existed when I wrote that message. Now that I know of its existence, I believe that Emacs behaves consistently with regards to what I mentioned in my first message. > . which fonts did you find problematic in this case? you say > "specific fonts", but it is not clear which fonts exhibit this > behavior I thought that the font which was problematic was "Noto Sans Mono" because when I used that font (in "Experiment 1" and "Experiment 2"), I could not increase the size of the character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) by evaluating (set-fontset-font t ?=E2=80=9C (font-spec :fa= mily "Noto Sans Mono" :size 50)), . However, when I used "Fixed 5" (in "Experiment 3"), evaluating (set-fontset-font t ?=E2=80=9C (font-spec :fami= ly "Noto Sans Mono" :size 50)) did increase the size of the character (#x201C, LEFT DOUBLE QUOTATION MARK). Now that I know that the variable use-default-font-for-symbols controls whether Emacs should honor fontsets, I don't think there's a problematic font, instead it was my fault for not correctly knowing the variable that instruct Emacs that it shoud honor fontsets. From unknown Sun Jun 22 00:52:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2024 06:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rodrigo Morales Cc: 73777@debbugs.gnu.org Received: via spool by 73777-submit@debbugs.gnu.org id=B73777.172931984722273 (code B ref 73777); Sat, 19 Oct 2024 06:38:01 +0000 Received: (at 73777) by debbugs.gnu.org; 19 Oct 2024 06:37:27 +0000 Received: from localhost ([127.0.0.1]:41027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t235a-0005nB-ST for submit@debbugs.gnu.org; Sat, 19 Oct 2024 02:37:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t235Y-0005mx-8a for 73777@debbugs.gnu.org; Sat, 19 Oct 2024 02:37:24 -0400 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 ) id 1t2353-0006xA-FE; Sat, 19 Oct 2024 02:36:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Bt9njDZsK5yTR/MglaN5hhx3KVAyvafgSMrp1m6fmiE=; b=NJ8DX4tit7KMYBbYacl/ P7W8+5Wkc+i0zI5+0yapg1k7G8Zu/bF8uSUCZuKzFYKbEj2VUNGHNSOQ8kf35nNIpxCNgUPjEobS0 lrvfQvhhZ9HlBuvANXaXw7gVNFt9h+8jXZ5ddX+QJ8gMXyMVZ2SIE6qSSQ5YC2iLzRcIu4uYJzF94 GBa6btdjWAemtH65AvfRJ7d1sUNaBOhpRJBnlsFQsbIUoTTTSVxmbiXbIfqInSwZXOqxDqhW+tBsO DNbWKe+8vaqd6LA4YDlA1P+t6zSs4cMEi43L3d6mwsGanblrn74SmNX2wky9DDf4hWe/dyiXeGFrV xL50sMw2TAr99g==; Date: Sat, 19 Oct 2024 09:36:51 +0300 Message-Id: <86frosmwe4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87ttd8di7o.fsf@morales.pe> (message from Rodrigo Morales on Fri, 18 Oct 2024 19:55:39 -0500) References: <87wmiddtni.fsf@morales.pe> <86iktqncx3.fsf@gnu.org> <87ttd8di7o.fsf@morales.pe> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: Rodrigo Morales > CC: <73777@debbugs.gnu.org> > Date: Fri, 18 Oct 2024 19:55:39 -0500 > > > . did you reset use-default-font-for-symbols to nil? without that, > > Emacs prefers to use the default face's font for punctuation and > > symbols, effectively disregarding the fontsets > > No. I didn't know that the variable use-default-font-for-symbols existed > when I wrote that message. Now that I know of its existence, I believe > that Emacs behaves consistently with regards to what I mentioned in my > first message. > > > . which fonts did you find problematic in this case? you say > > "specific fonts", but it is not clear which fonts exhibit this > > behavior > > I thought that the font which was problematic was "Noto Sans Mono" > because when I used that font (in "Experiment 1" and "Experiment 2"), I > could not increase the size of the character “ (#x201C, LEFT DOUBLE > QUOTATION MARK) by evaluating (set-fontset-font t ?“ (font-spec :family > "Noto Sans Mono" :size 50)), . However, when I used "Fixed 5" (in > "Experiment 3"), evaluating (set-fontset-font t ?“ (font-spec :family > "Noto Sans Mono" :size 50)) did increase the size of the character > (#x201C, LEFT DOUBLE QUOTATION MARK). > > Now that I know that the variable use-default-font-for-symbols controls > whether Emacs should honor fontsets, I don't think there's a problematic > font, instead it was my fault for not correctly knowing the variable > that instruct Emacs that it shoud honor fontsets. It's an obscure variable, not mentioned in any manuals (because we don't believe someone will want to specify a separate font for punctuation characters). It's a little wonder you didn't know about it. So does this mean we can now close this bug? Or are there any left-overs we still need to handle? From unknown Sun Jun 22 00:52:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts Resent-From: Rodrigo Morales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2024 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Rodrigo Morales Cc: 73777@debbugs.gnu.org Received: via spool by 73777-submit@debbugs.gnu.org id=B73777.172935467330786 (code B ref 73777); Sat, 19 Oct 2024 16:18:02 +0000 Received: (at 73777) by debbugs.gnu.org; 19 Oct 2024 16:17:53 +0000 Received: from localhost ([127.0.0.1]:44559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2C9J-00080U-4h for submit@debbugs.gnu.org; Sat, 19 Oct 2024 12:17:53 -0400 Received: from smtpout1.mo11.mail-out.ovh.ca ([51.161.45.253]:49785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2C9G-00080K-ST for 73777@debbugs.gnu.org; Sat, 19 Oct 2024 12:17:51 -0400 Received: from mxplan1.mail.ovh.ca (unknown [10.111.38.137]) by mo11.mail-out.ovh.ca (Postfix) with ESMTPS id 4XW6D50MBszHpy2; Sat, 19 Oct 2024 13:17:24 -0300 (ADT) Received: from morales.pe (54.39.251.57) by DAG2EX2.mxpca1.local (172.16.2.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 19 Oct 2024 12:17:23 -0400 Authentication-Results: garm.ovh; auth=pass (GARM-95B002747b6138-1744-4a69-933e-669f3b6e1405, D6B93EB44D622B9202CA83D10BE0041748985EAE) smtp.auth=rodrigo-mailing-lists@morales.pe X-OVh-ClientIp: 190.233.209.18 From: Rodrigo Morales In-Reply-To: <86frosmwe4.fsf@gnu.org> References: <87wmiddtni.fsf@morales.pe> <86iktqncx3.fsf@gnu.org> <87ttd8di7o.fsf@morales.pe> <86frosmwe4.fsf@gnu.org> Date: Sat, 19 Oct 2024 11:17:22 -0500 Message-ID: <87o73gdq3x.fsf@morales.pe> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [54.39.251.57] X-ClientProxiedBy: DAG2EX2.mxpca1.local (172.16.2.12) To DAG2EX2.mxpca1.local (172.16.2.12) X-Ovh-Tracer-GUID: 0bb37eba-688e-40cb-8d71-548f285ad5ad X-Ovh-Tracer-Id: 15822271392197678746 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdehhedguddtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfggtghisehttdertddttddtnecuhfhrohhmpeftohgurhhighhoucfoohhrrghlvghsuceorhhoughrihhgohdqmhgrihhlihhnghdqlhhishhtshesmhhorhgrlhgvshdrphgvqeenucggtffrrghtthgvrhhnpeegvedtjeefgeevgfdvjeeitdejudevjeetuefhkeegjeduvdfftddtvdekveehueenucfkphepuddvjedrtddrtddruddpheegrdefledrvdehuddrheejpdduledtrddvfeefrddvtdelrddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomheprhhoughrihhgohdqmhgrihhlihhnghdqlhhishhtshesmhhorhgrlhgvshdrphgvpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeefjeejjeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhouddupdhmohguvgepshhmthhpohhuth 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 (-) Eli Zaretskii writes: > So does this mean we can now close this bug? Or are there any > left-overs we still need to handle? We can close this bug. From unknown Sun Jun 22 00:52:29 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: Rodrigo Morales Subject: bug#73777: closed (Re: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts) Message-ID: References: <86r08cjcau.fsf@gnu.org> <87wmiddtni.fsf@morales.pe> X-Gnu-PR-Message: they-closed 73777 X-Gnu-PR-Package: emacs Reply-To: 73777@debbugs.gnu.org Date: Sat, 19 Oct 2024 16:20:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1729354803-31066-1" This is a multi-part message in MIME format... ------------=_1729354803-31066-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #73777: set-fontset-font doesn't set :size for specific characters when usi= ng 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 73777@debbugs.gnu.org. --=20 73777: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73777 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1729354803-31066-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 73777-done) by debbugs.gnu.org; 19 Oct 2024 16:19:41 +0000 Received: from localhost ([127.0.0.1]:44568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2CB2-00083y-W5 for submit@debbugs.gnu.org; Sat, 19 Oct 2024 12:19:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2CB1-00083k-IX for 73777-done@debbugs.gnu.org; Sat, 19 Oct 2024 12:19:40 -0400 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 ) id 1t2CAV-0001Ga-T2; Sat, 19 Oct 2024 12:19:08 -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=CC6XPkVHG5dmygcx41+Ay37f+DsCwTMdT6fhCaBYP2A=; b=jJYD+jVMUUzb YjxnMijgMfYWW3M1ORy2OFX3inQC3nY5oXw1ImtuvENTWZbgdJ/ZbgjYSTWpLU1kQgjU+WtAEQ5Uk sobq2UrsvQVLB0U1m78S8bZYBpLmXaC+nRAwbjJbuX/BgcZR9kEf1kHB9d2pkGh8pXAoQ21PWpcWC l+35jYYT5u9tFtRw7c4SS+oA2Shd1nxMzKoipL//vjuAu+zFim7LBXLkv0zXpZeYPzC2nHjwYPAOX GZG8ABptUuubMb5QlKg0i0d81bGPAeFKajrlvTtU+cSoM9l6moVXzQ6w7x2qDMswo6hERUbKu5+VK EixisRijxioh8nMChmRiAA==; Date: Sat, 19 Oct 2024 19:19:05 +0300 Message-Id: <86r08cjcau.fsf@gnu.org> From: Eli Zaretskii To: Rodrigo Morales In-Reply-To: <87o73gdq3x.fsf@morales.pe> (message from Rodrigo Morales on Sat, 19 Oct 2024 11:17:22 -0500) Subject: Re: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts References: <87wmiddtni.fsf@morales.pe> <86iktqncx3.fsf@gnu.org> <87ttd8di7o.fsf@morales.pe> <86frosmwe4.fsf@gnu.org> <87o73gdq3x.fsf@morales.pe> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73777-done Cc: 73777-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: Rodrigo Morales > CC: <73777@debbugs.gnu.org> > Date: Sat, 19 Oct 2024 11:17:22 -0500 > > Eli Zaretskii writes: > > > So does this mean we can now close this bug? Or are there any > > left-overs we still need to handle? > > We can close this bug. Thanks, closing. ------------=_1729354803-31066-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Oct 2024 19:11:15 +0000 Received: from localhost ([127.0.0.1]:58202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szhWE-0004dS-GP for submit@debbugs.gnu.org; Sat, 12 Oct 2024 15:11:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:50494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szhWB-0004dD-JU for submit@debbugs.gnu.org; Sat, 12 Oct 2024 15:11:12 -0400 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 1szhVv-00068a-0a for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 15:10:55 -0400 Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szhVs-0003Dp-Fi for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 15:10:54 -0400 Received: from mxplan1.mail.ovh.ca (unknown [10.111.58.232]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id 4XQtPF6PMgzHpyn for ; Sat, 12 Oct 2024 16:10:41 -0300 (ADT) Received: from morales.pe (54.39.251.56) by DAG2EX2.mxpca1.local (172.16.2.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 12 Oct 2024 15:10:40 -0400 Authentication-Results: garm.ovh; auth=pass (GARM-94B00189e05b76-c5dd-4c87-9210-2adb80bb89cc, DC706FC122992686D0CB77DC8ED9B16C5FEDDAA5) smtp.auth=rodrigo-mailing-lists@morales.pe X-OVh-ClientIp: 181.65.25.6 From: Rodrigo Morales To: Subject: set-fontset-font doesn't set :size for specific characters when using some fonts Date: Sat, 12 Oct 2024 14:10:25 -0500 Message-ID: <87wmiddtni.fsf@morales.pe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [54.39.251.56] X-ClientProxiedBy: DAG2EX2.mxpca1.local (172.16.2.12) To DAG2EX2.mxpca1.local (172.16.2.12) X-Ovh-Tracer-GUID: 4c436b64-1a25-4dac-9fd0-416874724dfd X-Ovh-Tracer-Id: 14533397476568765975 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeguddgudefgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkfggtgfgihesthhqredttddtjeenucfhrhhomheptfhoughrihhgohcuofhorhgrlhgvshcuoehrohgurhhighhoqdhmrghilhhinhhgqdhlihhsthhssehmohhrrghlvghsrdhpvgeqnecuggftrfgrthhtvghrnhepledvtdegvdevteekheegueevgfdtiefghfegjeeiuefggeehheetgfevhffgleetnecuffhomhgrihhnpegrrhgthhhivhgvrdhishdprghrtghhihhvvgdrphhhnecukfhppeduvdejrddtrddtrddupdehgedrfeelrddvhedurdehiedpudekuddrieehrddvhedrieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomheprhhoughrihhgohdqmhgrihhlihhnghdqlhhishhtshesmhhorhgrlhgvshdrphgvpdhnsggprhgtphhtthhopedupdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghdpoffvtefjohhsthepmhhouddvpdhmohguvgepshhmthhpohhuth Received-SPF: pass client-ip=51.161.45.254; envelope-from=rodrigo-mailing-lists@morales.pe; helo=smtpout1.mo12.mail-out.ovh.ca 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, 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.3 (-) X-Debbugs-Envelope-To: submit 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 (--) I am using GNU Emacs 29.4 in Ubuntu 22.04.5 LTS. Today, I was trying to change the font size for the character =3D=E2=80=9C= =3D (#x201C, LEFT DOUBLE QUOTATION MARK) using the sexp shown below. I noti= ced an inconsistency: that sexp only sets the size for the character =3D=E2= =80=9C=3D when specific fonts are used. #+BEGIN_SRC elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+END_SRC In the section below, I describe minimal reproducible experiments. In the e= xperiments, I use the file =3D/tmp/a.txt=3D containing the contents of the = code block below: #+HEADER: :tangle /tmp/a.txt #+BEGIN_SRC text a =E2=80=9C b #+END_SRC ** Experiment 1 (:size for #x201C is not set): Set :size for #x201C I started Emacs using the command shown below: #+HEADER: :eval no #+BEGIN_SRC sh ./src/emacs -Q /tmp/a.txt #+END_SRC The code block below shows the font reported for each character by calling = =3Dwhat-cursor-position=3D with a prefix argument. Screenshot: https://arch= ive.is/9LxOH #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC Then, I evaluated the sexp shown below. Upon evaluating it, the size of the= character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) didn't seem to in= crease. The second code block below shows the font reported for each charac= ter by calling =3Dwhat-cursor-position=3D with a prefix argument. Screensho= t: https://archive.ph/rVZSt #+begin_src elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+end_src #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-16-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC ** Experiment 2 (:size for #x201C is not set): Pass "Noto Sans Mono 10" to = set-frame-font, then set :size for #x201C I started Emacs using the command shown below: #+HEADER: :eval no #+BEGIN_SRC sh ./src/emacs -Q /tmp/a.txt #+END_SRC First, I evaluated the sexp shown in the first code block below. The second= code block below shows the font reported for each character by calling =3D= what-cursor-position=3D with a prefix argument. Screenshot: https://archive= .ph/PVc8q #+begin_src elisp (set-frame-font "Noto Sans Mono 10" nil t) #+end_src #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC Then, I evaluated the sexp shown below. Upon evaluating it, the size of the= character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) didn't seem to in= crease. The second code block below shows the font reported for each charac= ter by calling =3Dwhat-cursor-position=3D with a prefix argument. Screensho= t: https://archive.is/AIuP0 #+begin_src elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+end_src #+BEGIN_SRC text a: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x44) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-15-*-*-*-*-0-iso1064= 6-1 (#x45) #+END_SRC ** Experiment 3 (:size for #x201C is set): Pass "Fixed 5" to set-frame-font= , then set :family and :size for #x201C I started Emacs using the command shown below: #+HEADER: :eval no #+BEGIN_SRC sh ./src/emacs -Q /tmp/a.txt #+END_SRC First, I evaluated the sexp shown in the first code block below. The second= code block below shows the font reported for each character by calling =3D= what-cursor-position=3D with a prefix argument. Screenshot: https://archive= .is/v4Sr9 #+begin_src elisp (set-frame-font "Fixed 5" nil t) #+end_src #+BEGIN_SRC text a: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x62) =E2=80=9C: ftcrhb:-Misc-Fixed-medium-normal-normal-ja-13-*-*-*-c-120-iso106= 46-1 (#x3A3) b: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x63) #+END_SRC Then, I evaluated the sexp shown below. Upon evaluating it, the size of the= character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) significantly inc= reased. The second code block below shows the font reported for each charac= ter by calling =3Dwhat-cursor-position=3D with a prefix argument. Screensho= t: https://archive.is/KYRGd #+begin_src elisp (set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size 50= )) #+end_src #+BEGIN_SRC text a: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x62) =E2=80=9C: ftcrhb:-GOOG-Noto Sans Mono-regular-normal-normal-*-50-*-*-*-*-0= -iso10646-1 (#x209) b: ftcrhb:-Misc-Fixed-regular-normal-normal-*-7-*-*-*-c-50-iso10646-1 (#x63) #+END_SRC ** Conclusion When the default font is not changed (see experiment 1) or is set using =3D= (set-frame-font "Noto Sans Mono 10" nil t)=3D (see experiment 2), the sexp = =3D(set-fontset-font t ?=E2=80=9C (font-spec :family "Noto Sans Mono" :size= 50))=3D didn't seem to increase the size of the character =E2=80=9C (#x201= C, LEFT DOUBLE QUOTATION MARK). When the default font is set using =3D(set-frame-font "Fixed 5" nil t)=3D (= see experiment 3), the sexp =3D(set-fontset-font t ?=E2=80=9C (font-spec :f= amily "Noto Sans Mono" :size 50))=3D significantly increased the size of th= e character =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK). To me, the expected behavior is that =3D(set-fontset-font t ?=E2=80=9C (fon= t-spec :family "Noto Sans Mono" :size 50))=3D sets =3D:family=3D and =3D:si= ze=3D for =E2=80=9C (#x201C, LEFT DOUBLE QUOTATION MARK) regardless of the = font that is being used. ------------=_1729354803-31066-1-- From unknown Sun Jun 22 00:52:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73777: set-fontset-font doesn't set :size for specific characters when using some fonts Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2024 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 73777@debbugs.gnu.org, Rodrigo Morales Received: via spool by 73777-submit@debbugs.gnu.org id=B73777.172950417330498 (code B ref 73777); Mon, 21 Oct 2024 09:50:02 +0000 Received: (at 73777) by debbugs.gnu.org; 21 Oct 2024 09:49:33 +0000 Received: from localhost ([127.0.0.1]:50258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2p2b-0007vq-HW for submit@debbugs.gnu.org; Mon, 21 Oct 2024 05:49:33 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:56825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2p2Y-0007vb-Oa for 73777@debbugs.gnu.org; Mon, 21 Oct 2024 05:49:31 -0400 Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-37d4b0943c7so3138467f8f.1 for <73777@debbugs.gnu.org>; Mon, 21 Oct 2024 02:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729504078; x=1730108878; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=A7uiPWvTQxk8h8X3DJr8x3InZFoFMhShUJ9wiTsycoI=; b=B+rx8/AGT3SxLCjgSafpc4JzSLOyt8HhauM34g67QwTknuG3+K/bchGHZCIY2JZk/9 Cuzi8vhnZJukWko3RTfofe4UDjgGwpi1kZ9Oe4tRFrr5zUmgTOybdTtF3jFqkMVPl8dd i029RjFFRaEmRrlzdaKPz2UuES3c8XLPfbia+nBSsfQuXrFQNXA08UTE+8GxSXChKeKs daWZdzjc/Z5w17dXkBc4sdAT5mNlrFbgfEEMnSJY19jNr+SI8p7LtbYJf8K3LZsNnTBc IRQLsFh1rUSD1zBaYVrCqNjbQG7JK8yqm1mO9UnCGt2StjnDEzTAK71Re2CRYDLcn+cC a1rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729504078; x=1730108878; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A7uiPWvTQxk8h8X3DJr8x3InZFoFMhShUJ9wiTsycoI=; b=DwyenrTheG8nDCWfXwnUu7XsTpgOECBQRK4ZDiGnsFRQzMiB9ws6lhPMRU3plMiSBq RnF55fdWSLp3D6ZRD2n9yyKplmFbBYCKThUAT6v351Hoi8tFqdLYNcC2pZaHJPebyCt/ 0sCHrNqk/XdwgMpy7rqB+CjRWJghZBd2Xd2YY/zFAL1lHGekHSPm+ptrcf29QDwVRmj6 LIHGoTMEPUwCmZhtzH58eK2gmr/Tb+v7EN3XOlBwnqjsNNtaPHEMi5WebFQ/S2o20Mxp FEVoBfZT0FwE0JJ2+ySqdmYkVW3bOKg/GWIpotmDwKBJGNvsQB3torXAfF5fNr9GoVd3 +ALg== X-Forwarded-Encrypted: i=1; AJvYcCVqjXeXXb6aFZMI5cnjA7hjPhsPtB0kfxgCRgPX7RdPrC1+U3vqbT3wnnG5mZMQsT4zznipKw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwZzlVrktdJtmiXKoRG1NffXJ3v8+4Qb3NNyvWVoAmhckc6WVtk 5Th22Wqn9U7nJCYQsSE3joYP96GXdAvW7U0yFwUmFr15z2fKCoBQ61TxSA== X-Google-Smtp-Source: AGHT+IHurXJzA7JPqfesXXDLcjyHrTy1B2SSvzoLJie+wGy/KYD4JBzT9YqVX5Czit5CcTnr72csPg== X-Received: by 2002:adf:ea0d:0:b0:37d:50a5:6cf0 with SMTP id ffacd0b85a97d-37eab727cc6mr7310994f8f.6.1729504077564; Mon, 21 Oct 2024 02:47:57 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:98b6:53c9:72b3:c676]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ee0a378d7sm3885907f8f.16.2024.10.21.02.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 02:47:57 -0700 (PDT) From: Robert Pluim In-Reply-To: <86frosmwe4.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Oct 2024 09:36:51 +0300") References: <87wmiddtni.fsf@morales.pe> <86iktqncx3.fsf@gnu.org> <87ttd8di7o.fsf@morales.pe> <86frosmwe4.fsf@gnu.org> Date: Mon, 21 Oct 2024 11:47:56 +0200 Message-ID: <8734kprdmb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (-) >>>>> On Sat, 19 Oct 2024 09:36:51 +0300, Eli Zaretskii said: >>=20 >> Now that I know that the variable use-default-font-for-symbols contr= ols >> whether Emacs should honor fontsets, I don't think there's a problem= atic >> font, instead it was my fault for not correctly knowing the variable >> that instruct Emacs that it shoud honor fontsets. Eli> It's an obscure variable, not mentioned in any manuals (because we Eli> don't believe someone will want to specify a separate font for Eli> punctuation characters). It's a little wonder you didn't know abo= ut Eli> it. It=CA=BCs in the docstring for `set-fontset-font' and in the manuals as of emacs-30. Robert --=20