From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Feng Shu" Newsgroups: gmane.emacs.bugs Subject: bug#51821: 29.0.50; Suggest add variable or frame parameter: line-height Date: Tue, 16 Nov 2021 11:51:16 +0800 Message-ID: <87ee7g21xn.fsf@163.com> References: <87bl2nhbyp.fsf@163.com> <83bl2nugao.fsf@gnu.org> <87r1biqs7w.fsf@163.com> <837dd9twzz.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="4313"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: 51821@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 16 04:52:10 2021 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 1mmpVx-0000sC-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Nov 2021 04:52:09 +0100 Original-Received: from localhost ([::1]:51820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmpVx-0003Uf-0h for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Nov 2021 22:52:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmpVq-0003UG-Dh for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 22:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmpVq-0006Bh-60 for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 22:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmpVq-0004YT-33 for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 22:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Feng Shu" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Nov 2021 03:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51821 X-GNU-PR-Package: emacs Original-Received: via spool by 51821-submit@debbugs.gnu.org id=B51821.163703468717458 (code B ref 51821); Tue, 16 Nov 2021 03:52:02 +0000 Original-Received: (at 51821) by debbugs.gnu.org; 16 Nov 2021 03:51:27 +0000 Original-Received: from localhost ([127.0.0.1]:56689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmpVG-0004XU-MJ for submit@debbugs.gnu.org; Mon, 15 Nov 2021 22:51:26 -0500 Original-Received: from m12-18.163.com ([220.181.12.18]:33277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmpVD-0004XG-Qp for 51821@debbugs.gnu.org; Mon, 15 Nov 2021 22:51:25 -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=CZyaw 1+9nLVymVjdH6J6a+2akzZvmXwlL3avlm1c0a0=; b=brQWqNvslDPmhXVyDguO0 Y+DgsLeRKq7bqO1YK5x113fr1vlA2dm9MLU+WdBWfXQHPH+A5n1k0CyCRQB03mgU BV4FTmmgP1AuDnT2IikheP5nGMPg/cdJAIGZbpitFJAJDzJggfDUtTPpBXTx9kym SBvnJpGTOIVpfBJLBgEqtg= Original-Received: from debian (unknown [218.92.14.78]) by smtp14 (Coremail) with SMTP id EsCowABXWLi0KpNhkhO2LQ--.64220S2; Tue, 16 Nov 2021 11:51:17 +0800 (CST) In-Reply-To: <837dd9twzz.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 15 Nov 2021 14:38:08 +0200") X-CM-TRANSID: EsCowABXWLi0KpNhkhO2LQ--.64220S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KFWxZFy7Xry5KrW3Aw18Xwb_yoW8Wryfp3 yaq3ZFkr1DGr4Fqrn7Cwn7uF4YvrWfGr42kF1a9ryUAF45GryfZ3yrtrs0kFZrZr4rGws0 vrWUKF1xWa4UJa7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jUNVkUUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbBLANN1F++N9t3igAAsG 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" Xref: news.gmane.io gmane.emacs.bugs:220093 Archived-At: Eli Zaretskii writes: >> From: "Feng Shu" >> Cc: 51821@debbugs.gnu.org >> Date: Mon, 15 Nov 2021 06:37:23 +0800 >>=20 >> I think user should set to (t . RATIO) instead in most case. >>=20 >> Maybe line-height can be a alist ((face1 . RATIO) (face2 .RATIO)). >>=20 >>=20 >> =E2=80=98(FACE . RATIO)=E2=80=99 >> If the height spec is a cons of the format shown, the numeric >> height is RATIO times the height of face FACE. RATIO can be any >> type of number, or =E2=80=98nil=E2=80=99 which means a ratio of 1. = If FACE is =E2=80=98t=E2=80=99, >> it refers to the current face. > > No, I don't think RATIO can solve the problem, because it will cause > both the ASCII and the Chinese fonts to be enlarged, and you will > again see the same problem. > > AFAIU, you explicitly want to have _different_ behavior with ASCII and > Chinese fonts of the default face, and that cannot be handled on the This is not my final purpose, I just want to mode/head/tab line and minibuffer's height do not change depend on Chinese char exist or not. The reason I care line-height is that it can control mode/head/tab-line/minibuffer's height. > face level, because on that level we cannot distinguish between the > two fonts. > >> > So if we require all the lines to be at least line-height pixels, >> > those smaller lines will also become higher, and that is not what's >> > expected, I guess? >>=20 >> If user set line-height to a INTEGER with a variable, I think it >> is user expected. > > I don't think it's wise to provide features that trip na=C3=AFve users and > then tell them "you asked for it". It won't be appreciated, and we > will have bug reports. Sounds reasonable=20 --=20