From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shingo Tanaka Newsgroups: gmane.emacs.bugs Subject: bug#65803: 29.1; Noto Sans Mono CJK JP has doubled-width on Windows Date: Fri, 8 Sep 2023 07:26:18 +0900 Message-ID: References: <83bkeeytwf.fsf@gnu.org> <838r9iyrky.fsf@gnu.org> <835y4myqtb.fsf@gnu.org> <83jzt1xju6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19877"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65803@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 08 09:27:21 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 1qeVth-00050i-MA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Sep 2023 09:27:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeVtT-0004C9-6b; Fri, 08 Sep 2023 03:27:07 -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 1qeVtR-0004C0-R0 for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 03:27:05 -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 1qeVtL-0006xc-Kz for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 03:27:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeVtN-00072W-Kl for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 03:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shingo Tanaka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 07:27: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.169415800027028 (code B ref 65803); Fri, 08 Sep 2023 07:27:01 +0000 Original-Received: (at 65803) by debbugs.gnu.org; 8 Sep 2023 07:26:40 +0000 Original-Received: from localhost ([127.0.0.1]:42071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeVt2-00071r-0U for submit@debbugs.gnu.org; Fri, 08 Sep 2023 03:26:40 -0400 Original-Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]:60647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeVt0-00071e-4h for 65803@debbugs.gnu.org; Fri, 08 Sep 2023 03:26:38 -0400 Original-Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-58fc4eaa04fso18394357b3.0 for <65803@debbugs.gnu.org>; Fri, 08 Sep 2023 00:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694157990; x=1694762790; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xcidQmGmGNL5ERI3Fl5tM1I0+4awtnYIS2wNgsSzWxw=; b=B8nTieE2ICZBS2vC4BhsaKyOpzIOJ0tuWxcMt07gIyiAeq4UiczC9F1sID9PLZzJb/ xfEmgr9zaLXUPmZJPUrmQt6/ssS5UukrMyytzpn4lHKSDwzdZbccHyKze+eqRsfg761Z Ep16hAKpALtj9N8Du6Gw5xjUti/FtfNB7k5m/AiVYjuLvWZ6Ek5R3Axh//+DI50NLVM6 LRA/x9PM22g46XXqyEFIX8ZmdpE8vdweL9aSv8hKJMiKkEnV+JXajlYyyWIilFkNe1Eb jc1vtBD/D45HBvrXl5PZpnERJoolOSEJkuApkVF1Kr9TJwh4t6Fgxb619S09s4UlzD/r iwmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694157990; x=1694762790; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xcidQmGmGNL5ERI3Fl5tM1I0+4awtnYIS2wNgsSzWxw=; b=PYRg4/xyaDlxvcIniRovxQXxG2ZVcbn7Th6D3n6PVosQEAMW4lMLJq5Y5YjzfkIRK7 mVy+E/8XE8Im+OhORdlSLvxZQTTGThSKPU4gsOnlt0HFmnx9T4FedbF87bHeLOhI0Nfj PUIcsoQtr/L/65LaK3d8oB0lK7GMsXr4oK7e5RVvhzOLfyAPF4xrqsprpD5edaqpBQia P9gmYTtOCt7WjbNCkP2RKzmWZbywDwemiJVP/oBydCvibkcr8drr6YsjHKyLFpBrstnj DdX4IhazwF0FSUM1Un8u6LpQRtOtOEmkIFEw/S/tZDfM2ISfXvhMT9SGuFYvCfpzEtNb 7kdA== X-Gm-Message-State: AOJu0YwOUjwz+IM60/IQFnh9BeNwreW8tr0Klw7+Pb/kIdSbV9V8MZ0c BB66tZhEhn6gXJMDRowTSjaGzjf5nS2NXN6qpLpCKymxjeo= X-Google-Smtp-Source: AGHT+IGhcNLNWVrJ8YxzSY3BhMka7mshFVx9I4pmOwTCp42dZqff+Zy8BUSG4Yk5wB3BCuhfMtYTyLnOksa2GVNCBV0= X-Received: by 2002:a81:6f54:0:b0:595:67db:769a with SMTP id k81-20020a816f54000000b0059567db769amr1420860ywc.51.1694157990135; Fri, 08 Sep 2023 00:26:30 -0700 (PDT) In-Reply-To: <83jzt1xju6.fsf@gnu.org> 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:269734 Archived-At: > Please also tell what does (frame-char-width) return with each of the > two fonts on Windows. Here are the results including the one on Ubuntu. Obviously, the 2nd one (Noto on Windows) returns a doubled-width size which is unexpected. ;; On Windows - No issue (progn (set-face-attribute 'default nil :font "=EF=BC=AD=EF=BC=B3 =E3=82=B4=E3= =82=B7=E3=83=83=E3=82=AF") (frame-char-width)) 10 (string-pixel-width "A") 10 (string-pixel-width "=E3=81=82") 20 ;; On Windows - Wrong frame-char-width (progn (set-face-attribute 'default nil :font "Noto Sans Mono CJK JP") (frame-char-width)) 20 (string-pixel-width "A") 10 (string-pixel-width "=E3=81=82") 20 ;; On Ubuntu (w/Cairo) - No issue (progn (set-face-attribute 'default nil :font "Noto Sans Mono CJK JP") (frame-char-width)) 13 (string-pixel-width "A") 13 (string-pixel-width "=E3=81=82") 26 > Is your Ubuntu build with Cairo, btw? Yes, the Emacs on Ubuntu is the latest Snap version which is compiled with Cairo, as I can double check it by seeing colored Emoji. 2023=E5=B9=B49=E6=9C=888=E6=97=A5(=E9=87=91) 15:25 Eli Zaretskii : > > > From: Shingo Tanaka > > Date: Fri, 8 Sep 2023 08:19:29 +0900 > > Cc: 65803@debbugs.gnu.org > > > > I'm not an expert on fonts either, but the reason why I reported is bec= ause > > I don't see this issue on Ubuntu as attached with exactly the same font > > (NotoSansMonoCJKjp-VF.ttf). So the difference looks like coming from O= S > > difference but not emacs version difference. > > Could be: the way Emacs handles fonts on Windows is very different > from what we do on GNU/Linux. For example, it seemed to me that the > session using this font on Windows actually used the bold variant of > the font, which might have something to do with the very partial > support for font families on MS-Windows. > > Please also tell what does (frame-char-width) return with each of the > two fonts on Windows. > > Is your Ubuntu build with Cairo, btw?