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 00:04:38 +0800
Message-ID: <87o86oujmx.fsf@163.com>
References: <2c676019.21d2.17d19ba2dc8.Coremail.tumashu@163.com>
 <838rxsxes6.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="28493"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cc: emacs-devel@gnu.org
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 13 17:20:47 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 1mlvlm-0007Ct-4Q
	for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Nov 2021 17:20:46 +0100
Original-Received: from localhost ([::1]:32950 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 1mlvlk-0000r1-K3
	for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Nov 2021 11:20:44 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:56254)
 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 1mlvl0-0007uG-5E
 for emacs-devel@gnu.org; Sat, 13 Nov 2021 11:19:58 -0500
Original-Received: from m12-18.163.com ([220.181.12.18]:55879)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <tumashu@163.com>)
 id 1mlvkx-0008Ba-JJ; Sat, 13 Nov 2021 11:19:57 -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=JSFTo
 KbYKfvBLsHwM3ifQMOP12Se+Ux9UhpaOXFkEWY=; b=PgKPDX3fPoiVP3UwtQyVp
 bixqpiMHqSJQBif2mplSNJadbHf1BOb+l0bQWI3Tyq75e64IZD4OKBtk1z6l2Xy/
 ovtzQEl4kIOKWk41K3DT+QVvaH0YcMKN84jMZfrzNLeBXMaC8dLPHOR5BSISEFGO
 /vgzBwG+UwUtS7TlLB8c/o=
Original-Received: from tumashu (unknown [49.88.37.140])
 by smtp14 (Coremail) with SMTP id EsCowAAXGroX4o9hJbn+Kw--.45592S2;
 Sun, 14 Nov 2021 00:04:39 +0800 (CST)
In-Reply-To: <838rxsxes6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Nov
 2021 17:21:13 +0200")
X-CM-TRANSID: EsCowAAXGroX4o9hJbn+Kw--.45592S2
X-Coremail-Antispam: 1Uf129KBjvJXoW7KF4xXw18JrWUCFykWFW5GFg_yoW8GF1xpa
 4YqwnrKw1qyF18JrnY9FsFgas8uws8Jr9Fgw4UAw13tFn5G3s3XrZayFn0kF9FkFWUK34Y
 qay5GasrXFZxZaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2
 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U4UDAUUUUU=
X-Originating-IP: [49.88.37.140]
X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiqxdK1FUMbhvgfAAAsS
Received-SPF: pass client-ip=220.181.12.18; envelope-from=tumashu@163.com;
 helo=m12-18.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_MSPIKE_H4=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:279336
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/279336>

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Sat, 13 Nov 2021 22:36:11 +0800 (CST)
>> From: tumashu <tumashu@163.com>
>>=20
>> Hello everyone:
>>=20
>> =C2=A0=C2=A0 (1)    How to let A Chinese char width =3D 2 * Ascii char w=
idth is an eternal topic for Chinese new emacser.
>
> On GUI frames Emacs takes the width of each character in pixels from
> the font that is being used.  So if you want each Chinese character to
> take exactly 2 character cells of an ASCII character, you need to find
> a pair of fonts that satisfy this relation.  Because the font used for

This is the main way Chinese emacser used, like below, but it=20
will have question 2:  Chinese Char Height > Ascii Char Height.

(progn
  (set-face-attribute
   'default nil
   :font (font-spec :name "PragmataPro"
                    :weight 'normal
                    :slant 'normal
                    :size 16.0))
  (dolist (charset '(kana han symbol cjk-misc bopomofo))
    (set-fontset-font
     "fontset-default"
     charset
     (font-spec :name "=E9=BB=91=E4=BD=93"
                :weight 'normal
                :slant 'normal
                :size 16.0))))

>> it let all Chinese new users and many old users puzzle a lot, that
>> is the reason my cnfonts package (a Chinese fonts setup utils) get
>> >600 github star.
>> recent day, we talk about Emacs fonts, so I want to know, is it
>> possible provide a feature in emacs core to solve this problem?
>
> Which problem is that?  The 2 questions you asked or something else?

What I said is question 1: "A Chinese char width =3D 2 * Ascii char"




--=20