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#65803: 29.1; Noto Sans Mono CJK JP has doubled-width on Windows Date: Sun, 10 Sep 2023 15:55:56 +0800 Message-ID: <87tts2a2cz.fsf@yahoo.com> References: <83bkeeytwf.fsf@gnu.org> <838r9iyrky.fsf@gnu.org> <835y4myqtb.fsf@gnu.org> <83jzt1xju6.fsf@gnu.org> <83wmx0x3hj.fsf@gnu.org> <87wmx0dbn6.fsf@yahoo.com> <834jk3v8ux.fsf@gnu.org> <87wmwzbh5z.fsf@yahoo.com> <83pm2rtmvz.fsf@gnu.org> <87o7iac05e.fsf@yahoo.com> <834jk2txe6.fsf@gnu.org> <87fs3mbnem.fsf@yahoo.com> <831qf6twid.fsf@gnu.org> <877coybmho.fsf@yahoo.com> <83y1heseud.fsf@gnu.org> <8734zmbi1z.fsf@yahoo.com> <83msxusbvb.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="16334"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65803@debbugs.gnu.org, shingo.fg8@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 10 09:57:06 2023 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 1qfFJZ-00046g-0p for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Sep 2023 09:57:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfFJU-00038b-F5; Sun, 10 Sep 2023 03:57: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 1qfFJS-00038D-RZ for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 03:56: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 1qfFJS-0007Te-DP for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 03:56:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfFJV-0007Pb-Mq for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 03:57:01 -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, 10 Sep 2023 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65803 X-GNU-PR-Package: emacs Original-Received: via spool by 65803-submit@debbugs.gnu.org id=B65803.169433258228444 (code B ref 65803); Sun, 10 Sep 2023 07:57:01 +0000 Original-Received: (at 65803) by debbugs.gnu.org; 10 Sep 2023 07:56:22 +0000 Original-Received: from localhost ([127.0.0.1]:49009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfFIs-0007Oh-12 for submit@debbugs.gnu.org; Sun, 10 Sep 2023 03:56:22 -0400 Original-Received: from sonic313-10.consmr.mail.ne1.yahoo.com ([66.163.185.33]:35265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfFIp-0007OT-DD for 65803@debbugs.gnu.org; Sun, 10 Sep 2023 03:56:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694332570; bh=c/ySt9AK1qx9InD0vBWVlu9NArcatkKqHZRBxwWgvy8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=W9EmkQJVMdcnt+pJg3vLCN9DpJWJLkFlJg5c2GG/Q2X+5yge0r6HFm/X46DKKFWj+34eM5EHXPmn5R7DAv5vbrDmsx/cTVSTHostAlLzswN1H1kdwLqUUl9GLo5TjhA82qo5FC07j/WnHUIVA3/t9COWKIKTsOQAqriPP5UfMiO2Zy7HXcwADoPjyPhgAjh3hirSiW0FpNwbqN0GsQo+0F5n8Un5xu6m/mKl4stg3hjEhPjl+/kQTZiFdu4LediDrOoiuHr6ZP0nRH3mrmQX4QH6q8BDTQhJXI15dmWPVOI+yQKqBQEX9zsvF6x4eDcENV3RdznPXerDhUggO9SkiQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694332570; bh=+fsolcl+a6iPvTWm3P+Yd+Y4TiCXkocbw7YzGQw7oXn=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=rZTepPj8rPromf7NrRzjuAvQOwAGlta4DHo19cQ7KIhTuV0iN81oAS6dMpiFvMWnLYPI1LuYz8GWJCJR4MAktKh3BSVn0AG6RaNOP7qc4MBD2gj9/KnWbi8HWxcN56AUp61Lxcd1lM6RaEJT/2zbFq690vXGvRd6Q0T7ttb/tPShlOnwnTOTYDDKnNRJ1OggkrVrRSzgO5oRQZsYGhvS5a0eoWaHmPUe5FiQLRoGeeiTPLoDBeD+DqtLMpB8mw9GjXtAftKwCl+wA8NOPczza/RVK2JSjjKAedmz5SStWilZI66c04rkiq4s1x/0tSntyo0TcCaEdhkg3zQ8vKL33w== X-YMail-OSG: cIR7sIoVM1lvrsJw5P3fuP4StUOn19SNHYzbwExRB11.YjtrssVP7yEF.ezdttV jUYOx0skwdYdVEP9IeFjVXp0qq70toovewg2bfq5ndOGnqHtnl7zjd4fsBv7DRfwi_EanjdPx.LM 9aRc5jcg9ey4sm8VAFXlSyyeWoGdOrGUQgcn_yN1fpLsh9PkTiCb8Re.D_mwZ9pECC2v0YAaRdzj 6pyZ30RTKZv2YCTQcmNfMi_ek2VWan_hi4u_aKjcktJ1pSy3txo3AtjraDewm28im_ueGf_kxVQ4 VSzKm9NBiELT4F46q.gBzMLnOMS_Kc6uy8gnW_GzPppc9lB0BZAuC7NBIWSS5icUHCAcXL1vzJZB envHsQp.r3i4Dai1W9wIj04OeLO4m3UwfvvXZRf1fBLn_W0axz1MwJhTDTDn93PLhUmaAoz7Epwp STz9lm_xSrNC2kelELALdCprNOXVVO4O9klLmAjQcC0Zr9AmDqcKqPzX.YuOMfldro.OwgALsJ5P kcP43HTBq.erFRu3Jh7tQliYjYsLHI8QzzGjbNP6IiZ0iv1_BdtKXyYVmspqseCvKwu7NyIC6SO0 MEMWyqBKiw.9u5bHfZ1GHZXaeolIJW0XMYreywgyY6R9kjWtZJegz0_LORAGIcgj2Rwfm.eEnASK H6YmnblJ84iENXG49jJrFAkv0ozxD1ZYJ5cbKZ8NIVB19N5yduOvnhxSa4hf1y3fBR0PSyqTFNNO 4U8bxejIQ9_I53KbBRIDLdzeG_Dxay.g78Kz7nsz3qhz3yvIPtbnaw_VUubNV7PevjUOzYZFiAwh zpIDdSeiMZbp1LEo18ck8_BaTcCBqu2SVTLW4BcqGs X-Sonic-MF: X-Sonic-ID: 31148083-20d6-49f2-80b6-fd0c34b2d768 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Sun, 10 Sep 2023 07:56:10 +0000 Original-Received: by hermes--production-sg3-69654d8bd-sbrjf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9d04c3081ae8a689a076beb57d10a422; Sun, 10 Sep 2023 07:56:05 +0000 (UTC) In-Reply-To: <83msxusbvb.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Sep 2023 10:53:12 +0300") X-Mailer: WebService/1.1.21763 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:269932 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Cc: shingo.fg8@gmail.com, 65803@debbugs.gnu.org >> Date: Sun, 10 Sep 2023 15:31:36 +0800 >> >> Eli Zaretskii writes: >> >> > See above: other backends only calculate the average width for >> > proportional fonts. So what you say doesn't fit my reading of the >> > code. >> >> Because if spacing is not FC_PROPORTIONAL or FC_DUAL, we know in advance >> that max_advance_width or max_advance are identical to the average of >> all ASCII glyphs. Such special treatment is an optimization, nothing >> more. max_advance_width is the advance width (in em space) of the >> widest glyph when the font is scalable, and max_advance is that in pixel >> space if not. > > So you think it's okay to do the same in the w32 font backend, > i.e. take the average width from the font when the font is known to be > fixed-pitch? If not, please elaborate, because that's what I > understand from what you wrote above. I don't think it's okay, because the W32 font backend judges fonts that are not fixed pitch to be so; Noto Sans Mono CJK JP, for example.