From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: "Feng Shu" <tumashu@163.com>
Newsgroups: gmane.emacs.devel
Subject: Re: Any new method to deal with Emacs Fonts settings puzzles nearly
 every Chinese =?utf-8?Q?emacser=EF=BC=9F?=
Date: Sun, 14 Nov 2021 08:02:29 +0800
Message-ID: <87bl2nppt6.fsf@163.com>
References: <2c676019.21d2.17d19ba2dc8.Coremail.tumashu@163.com>
 <838rxsxes6.fsf@gnu.org>
 <165ffaaf53a0f38af0415eb4e6b7844f@webmail.orcon.net.nz>
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="10810"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
To: Phil Sainty <psainty@orcon.net.nz>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 14 01:03:19 2021
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1mm2zO-0002cX-Rh
	for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Nov 2021 01:03:19 +0100
Original-Received: from localhost ([::1]:41556 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1mm2zN-0000Uz-5C
	for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Nov 2021 19:03:17 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:34644)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tumashu@163.com>) id 1mm2yl-00080B-EJ
 for emacs-devel@gnu.org; Sat, 13 Nov 2021 19:02:39 -0500
Original-Received: from m12-12.163.com ([220.181.12.12]:54352)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <tumashu@163.com>)
 id 1mm2yh-0000i2-4f; Sat, 13 Nov 2021 19:02:38 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;
 s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=J0cIk
 S/TcUwsp3bgSKgDBq2My2jPATN8ChsyLYaFIV4=; b=WBtYpb7pU/E8G8hBr/shF
 8aK0e01t4L9dJgZuc/STGnqD4sxGK4KuUuDJI5eJnW/bLdvzXzDmguNlDUlyC9qh
 fXG7+CYWCGxeA3Pq0hJi4VF+hTvK/98X9llB6PJCd4vm3dMPuLfcjICDQnfQpJpG
 EnI25wly2Plq5qMp4wq13o=
Original-Received: from tumashu (unknown [49.88.37.140])
 by smtp8 (Coremail) with SMTP id DMCowACHda0VUpBh444qAg--.41125S2;
 Sun, 14 Nov 2021 08:02:30 +0800 (CST)
In-Reply-To: <165ffaaf53a0f38af0415eb4e6b7844f@webmail.orcon.net.nz> (Phil
 Sainty's message of "Sun, 14 Nov 2021 12:14:39 +1300")
X-CM-TRANSID: DMCowACHda0VUpBh444qAg--.41125S2
X-Coremail-Antispam: 1Uf129KBjvdXoW7Xw4ktrWrKFyrZry5uFW3Wrg_yoWfCrX_Ar
 1DCay8ta9rWF48AanrGrs5tayjga4S9w1qyF15X39rK3yYqrZ8uw4vyrZ7J3WfAr45JasI
 9F1vy34rC3sxGjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT
 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjfb17UUUUU==
X-Originating-IP: [49.88.37.140]
X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiRRZL1GDuuKbN9gAAsn
Received-SPF: pass client-ip=220.181.12.12; envelope-from=tumashu@163.com;
 helo=m12-12.163.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:279361
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/279361>

Phil Sainty <psainty@orcon.net.nz> writes:

> On 2021-11-14 04:21, Eli Zaretskii wrote:
>> On GUI frames Emacs takes the width of each character in pixels from
>> the font that is being used.
>
> Potentially Emacs could provide a defcustom mapping of fonts to minimum
> character widths, and if the actual width of any character is less than
> the customized minimum then the (larger) minimum width is used instead
> (I guess padding either side of the character).

Maybe we just need a padding api, and let user control the number px or pec=
ent of
padding.

"let 1 Chinese Char width =3D 2 * Ascii Char width" main useful in table
like environment, for example org-table, org-agenda buffer, gnus buffer
and so on. so let user choice a padding is possible solution,=20

And We should pad Chinese instead of Ascii, for=20

     H e l l o =E4=BD=A0=E5=A5=BD

looks ugly :-)



>
> I've no clue whether this is practical -- I know very little about
> fonts.
>
>

--=20