From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65803: 29.1; Noto Sans Mono CJK JP has doubled-width on Windows Date: Sat, 09 Sep 2023 17:39:56 +0300 Message-ID: <83tts3tnpf.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25550"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65803@debbugs.gnu.org, shingo.fg8@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 09 16:41:22 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 1qez9F-0006Up-Gv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Sep 2023 16:41:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qez8v-0002VW-6d; Sat, 09 Sep 2023 10:41:01 -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 1qez8t-0002MG-I5 for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 10:40:59 -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 1qez8s-0006Y2-NG for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 10:40:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qez8v-00046Z-If for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 10:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Sep 2023 14:41: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.169427041915721 (code B ref 65803); Sat, 09 Sep 2023 14:41:01 +0000 Original-Received: (at 65803) by debbugs.gnu.org; 9 Sep 2023 14:40:19 +0000 Original-Received: from localhost ([127.0.0.1]:48226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qez8F-00045V-9v for submit@debbugs.gnu.org; Sat, 09 Sep 2023 10:40:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qez8B-00045D-GT for 65803@debbugs.gnu.org; Sat, 09 Sep 2023 10:40:18 -0400 Original-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 1qez83-0006Sz-6L; Sat, 09 Sep 2023 10:40:07 -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=fG3FEe5r9KRe6GEgFrZSUjh+QnhjRM2AIBChWTGm7kE=; b=qpQ9qqOSY70L /Bt/Wm4Hh+nrs4dN981j43LOuZSuDYerFn1x0iPYUGiGMjNJFC0a6f98CdOURXrTgqoFaRaDcPafv kWt+aXhGr3CAHRR2XTsI4xUzugg9b83vNLPAOIlWw5P4IQg+aSV89feVIr06gfri0nd3caf2J7NMl ZyqZxY8U6Cu9qvsvxBuJdfn5I99jLRaBypuplrq/Phd6R1hgviTisasNrwXyog8HlRXJevIN2RQqk eEqAsx9scIlaUTihphZ3VP08rZwxR9rlv76A6WsD38GHjfKg9OZO7h5NHB9+B6vHfjNWKldVWBeu6 K6EMCTjCi7YdjHGxrEu7vA==; In-Reply-To: <87wmwzbh5z.fsf@yahoo.com> (message from Po Lu on Sat, 09 Sep 2023 21:38:32 +0800) 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:269868 Archived-At: > From: Po Lu > Cc: shingo.fg8@gmail.com, 65803@debbugs.gnu.org > Date: Sat, 09 Sep 2023 21:38:32 +0800 > > Eli Zaretskii writes: > > > Thanks, but the above snippet in ftfont.c is only done for > > proportional fonts, not for fixed-pitch fonts. Is the font in > > question, Noto Sans Mono CJK JP, a proportional font? That is, does > > it not set the fixed-pitch attribute? > > There's no spacing attribute in TrueType fonts, so that is contingent > upon how the MS Windows font scaler detects fixed pitch fonts. Here's > how ftfont.c calculates the average width for fonts that Fontconfig > deems fixed pitch: > > font->min_width = font->average_width = font->space_width > = (scalable ? ft_face->max_advance_width * size / upEM + 0.5 > : ft_face->size->metrics.max_advance >> 6); What is metrics.max_advance, in terms of the attributes recorded in the font file? > That aside, Fontconfig does not judge Noto Sans Mono CJK JP a fixed > pitch font on my system. OK, that might explain part of the issue, thanks.