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:45:03 +0300 Message-ID: <83sf7ntngw.fsf@gnu.org> References: <83wmx0x3hj.fsf@gnu.org> <87wmx0dbn6.fsf@yahoo.com> <20230908.164911.110008175722794498.wl@gnu.org> <83y1hftspx.fsf@gnu.org> <87sf7nbgzt.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6922"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65803@debbugs.gnu.org, wl@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:46:26 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 1qezEA-0001eG-3B for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Sep 2023 16:46:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qezDk-0007j9-7I; Sat, 09 Sep 2023 10:46: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 1qezDj-0007io-BO for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 10:45: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 1qezDj-0007hp-3A for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 10:45:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qezDl-0004E0-MD for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 10:46: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:46: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.169427072816200 (code B ref 65803); Sat, 09 Sep 2023 14:46:01 +0000 Original-Received: (at 65803) by debbugs.gnu.org; 9 Sep 2023 14:45:28 +0000 Original-Received: from localhost ([127.0.0.1]:48239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qezDD-0004DE-S8 for submit@debbugs.gnu.org; Sat, 09 Sep 2023 10:45:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qezDC-0004Cv-5x for 65803@debbugs.gnu.org; Sat, 09 Sep 2023 10:45:27 -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 1qezD3-0007QI-0Q; Sat, 09 Sep 2023 10:45:17 -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=9rP4V4YGWs89RPD7tN851zRaDRAs1eizF4PV2E1+2q0=; b=UYeJkphHITVU sEuEOHSXKz9VrIm/QCeqFuCVZDoyXXzBLXcWOSYiGNpuUMrZhqSbIJoq+Nf5Q3iIwukIADv5Yqobu qoHvbEqsiiVljvTmUCX4avGl/kgj9h5vXYupvBL9ficxOOQIenzPSpYsqTl8rel9a5TEgddsG57ZI ObF2CiDHFyA+iQsFtsO9SXLEKH5wZTNR4KBO59tUgTBGPvYPOACVV/TadDqYqJwd/xQ7GmZ6k0jD+ iTZwCCYfkjPVOmJpZgKqnu9ctIgz+8yy7Cj+bAKAemwR9iTUMBR/kU2LimkQ+ZJg4D7/iYhCZGnV9 l9YRq6qxnRbt57XDBIH62Q==; In-Reply-To: <87sf7nbgzt.fsf@yahoo.com> (message from Po Lu on Sat, 09 Sep 2023 21:42:14 +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:269869 Archived-At: > From: Po Lu > Cc: Werner LEMBERG , 65803@debbugs.gnu.org, shingo.fg8@gmail.com > Date: Sat, 09 Sep 2023 21:42:14 +0800 > > Eli Zaretskii writes: > > > How does one know, using the OpenType specification info, whether a > > given font is fixed-pitch or proportional? I seem to be unable to > > find this in the spec, but maybe I need new glasses. > > This information is not available within the font file, at least in the > TrueType specification which is the basis for OpenType. Programs which > read TrueType fonts are obliged to judge for themselves, customarily by > taking measurements of each font's glyphs, or by searching for ``Mono'' > within the font's family name. I don't know which approach Windows > employs. MS-Windows seems to report it in the data it holds about the font. See the lfPitchAndFimily attribute in the LOGFONT structure: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfontw and the tmPitchAndFamily attribute of the TEXTMETRIC structure: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-textmetricw I have no idea how these attributes are determined by Windows.