From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70989: 29.3; Calling isearch-forward when using Unifont throws error "Invalid font name" Date: Sun, 19 May 2024 15:37:09 +0800 Message-ID: <87jzjq6ymy.fsf@yahoo.com> References: <3df5d89f24d568fa565913cec6902fb0@rodrigomorales.site> <86pltlh7ua.fsf@gnu.org> <87eda1ldsl.fsf@rodrigomorales.site> <86cyplge4o.fsf@gnu.org> <87wmnsya2h.fsf@yahoo.com> <87r0e0pj2c.fsf@rodrigomorales.site> <87ttiv71el.fsf@yahoo.com> <86seyfcewy.fsf@gnu.org> <86wmnqbala.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70989@debbugs.gnu.org, me@rodrigomorales.site To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 19 09:38:13 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s8b7U-0007Cy-7W for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 May 2024 09:38:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8b7I-0004ok-R9; Sun, 19 May 2024 03:38:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8b7G-0004nA-VU for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 03:37:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8b7G-0000i0-Ns for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 03:37:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8b7K-0001nT-IF for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 03:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2024 07:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70989 X-GNU-PR-Package: emacs Original-Received: via spool by 70989-submit@debbugs.gnu.org id=B70989.17161042726901 (code B ref 70989); Sun, 19 May 2024 07:38:02 +0000 Original-Received: (at 70989) by debbugs.gnu.org; 19 May 2024 07:37:52 +0000 Original-Received: from localhost ([127.0.0.1]:35829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8b7A-0001nF-6K for submit@debbugs.gnu.org; Sun, 19 May 2024 03:37:52 -0400 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:45746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8b78-0001n7-Po for 70989@debbugs.gnu.org; Sun, 19 May 2024 03:37:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1716104261; bh=q2P8WIJo7zc/FirLPl/InEQSal1NlY3U/4g/XEHJ7cE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=pKxCpAIHJpF5gatXZgAd0p0D49M+/kZ6194ahK2BNfvYTO05y8D4jCkRjWi+Na7EB4qIHEgCQoJ1hppo0BTRqYLAcWVDA8WHeVXdeTaXg1PugRqzsM/qELfclAdZN4stBn8nmwN0cS9SKlvyAKboDarpPmnFsjISLVmWi+vUAqETuUgex8JKvXdzrq0lkjlyjvKhyMR08R/oGwy83Kd4LS3x2c9dWZsNJcfjn0amyQBBi0cAqy5fos0KNBEkF/PMEimytTyL28gTgLH0ixpDS2W/96ACJ1MPJYkHF8wqKdo8w60zTtCeY+WDtH8iIxawrbEF+MGlQ4tqJxy+0AxjXQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1716104261; bh=NeXLqBZsJ0mLqTb0eFKfjY812vLhQSE64dNQHf6gQEq=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=lvzGB8f9Qd+tkhysNg1G+CwvQlIKuI/NO0tkXocuB7DQzB33TmXOPRhVEe5M+cHcf8j2TIgJ53tY6TfqsYm0egOfAi8bJi1r3SUaEGagymT87MDXbWrcn914gb/Cxo+LbvVgsHJG55KyC7QNJ//yUqRsQKI/6HexmEE2L5dLGHzqfcI93OHuPpwM1+vKV5xjtZXNrZdpW9uDCBJkUcozkKptoJPuuUhi6kNDYZGDGaeFQhXNoFx6bj98Civ65m2MxlYzbCX/GrYGq8x2kkzgnNQ/XqNPIUO63pa5mkbKeQOGW393ZSV+i+TB7jAt3wf/VIDKiwZQxFk0E0Lt7/QM9g== X-YMail-OSG: hFTWd7gVM1mlbvQFjVGgdjDuNFWFhkaAlXQ_W0sCwWbOVSMYRX3esyUK7y9nuPs EtF3Jrr..taRMFYC_a8yyRb9klkJfaEby6RGh9u7w2MPljYezGOTLrZuJArF2OcCsSD0Wl3GYGsz wYM6SbbGs7y7BGqUWY69FYrGB9H3S4ga1ldfourDEkwMfeegOhZei7AP5DCLdAotzF8EuVhkDwQe cQodiiq2hbD.XwD8CDoMWWN20AM_waY1OmmSS.f_p2676DNzAsUiPKoO9GeE.wBJ40yFNnNaklPa auKi0Siso11La34ea7f0XjAJDdjW66zYxFukmEeg4P4FP_2mSh.QGteGkl3zM5yCbw91x.r_XIaD QHtlZSLZA3aQ1PM.rijdQ4mnyiLPUo442ODjqEF1bQBa080UJxdgQhSmSdogwzlgQAFekS7oXjir efVLNMqCwhhx1rmnSvw8qU3BDlY5oMFCzZG0sTYcZuPq4Z.Llyl4E_KvdhbGq0A6bmQrFLEiO70Q 22SJhRZYTMUcRGUJ0dUqW4Wtd5J6bZx8KsQV5_B4GElzU4CI5zV53EEEVqeeMsOmEChJT1L73tx7 o8Inb422W0Lr01xgiDaFOyifIf4ioblV12t7m_vMWBPAvioPVqle2E_2gODlId1x3uixFLYFApCu GVL4LMy6M8YHdyTUvXzAC.M4shT0nIOXY9yJvQ6QwzVJeJDtt8OvAaVspsqaMJ4za__T3a4kjmFU QTHgofH3U3T6KHnR5DVdrxkxnCgXSrAnrrOCI9nj8eqccv9yrz1yQjVEL4zusrxNhYbgaP7Sc9yH YuocGMCmeLLpsVTBWDVJLrYiXbvXa9DyJEkJF8JBYz X-Sonic-MF: X-Sonic-ID: ada05636-97c0-4798-ba36-64045dfe9f92 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Sun, 19 May 2024 07:37:41 +0000 Original-Received: by hermes--production-sg3-6f9f87bd85-fwdz2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 93df86130b0090657b2c769903e0f58a; Sun, 19 May 2024 07:37:34 +0000 (UTC) In-Reply-To: <86wmnqbala.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 May 2024 09:05:21 +0300") X-Mailer: WebService/1.1.22356 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285409 Archived-At: Eli Zaretskii writes: > Sorry, I still don't understand what you are saying. Could you please > talk me through the code in that function, and tell where does > "Sans-Serif" come from and how is it "injected" into the font's > attributes? > > What I see there is the call to fond_intern_prop, and if the result is > accepted by font_style_to_value as a valid value of FONT_WIDTH_INDEX, > it is returned. But "Sans-Serif" is not supposed to be a valid width > of a font, so I'm confused. Where does FONT_WIDTH_INDEX come into play? The attribute responsible is FONT_ADSTYLE_INDEX, which is set to "Sans-Serif" by: font. */ FT_Face ft_face; ASET (entity, FONT_ADSTYLE_INDEX, get_adstyle_property (p)); if ((ft_library || FT_Init_FreeType (&ft_library) == 0) in ftfont_pattern_entity. The XLFD generated from a font with such an adstyle is not parsable, the character `-' being the field separator in XLFDs, and gives rise to parser errors such as Rodrigo encountered when I-search, by proxy, attempted to deconstruct the XLFD back into a font spec. > In what string or symbol name that is being processed in > get_adstyle_property? Its return value.