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#51821: 29.0.50; Suggest add variable or frame parameter: line-height Date: Fri, 19 Nov 2021 14:27:21 +0200 Message-ID: <83sfvsuy8m.fsf@gnu.org> References: <87bl2nhbyp.fsf@163.com> <83bl2nugao.fsf@gnu.org> <878rxq62qt.fsf@gnus.org> <83k0hatxjl.fsf@gnu.org> <875ysu2d18.fsf@gnus.org> <83y25pshaa.fsf@gnu.org> <874k8c8sg0.fsf@gnus.org> <83ilws16hj.fsf@gnu.org> <87wnl8qg8b.fsf@gnus.org> <83czn0123n.fsf@gnu.org> <83v90pwcab.fsf@gnu.org> <87v90o9abe.fsf@163.com> <83lf1kwrjp.fsf@gnu.org> <87fsrsobpj.fsf@yahoo.com> <837dd4wov3.fsf@gnu.org> <878rxko5gh.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tumashu@163.com, larsi@gnus.org, 51821@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 19 13:28:42 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 1mo30U-0009oL-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 13:28:42 +0100 Original-Received: from localhost ([::1]:56054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo30T-0001Jn-EU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 07:28:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo2zq-0000pq-HZ for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 07:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mo2zq-0001T4-7W for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 07:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mo2zq-0001ng-4C for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 07:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Nov 2021 12:28: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.16373248496850 (code B ref 51821); Fri, 19 Nov 2021 12:28:02 +0000 Original-Received: (at 51821) by debbugs.gnu.org; 19 Nov 2021 12:27:29 +0000 Original-Received: from localhost ([127.0.0.1]:38290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo2zJ-0001mQ-0o for submit@debbugs.gnu.org; Fri, 19 Nov 2021 07:27:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo2zH-0001mC-Hm for 51821@debbugs.gnu.org; Fri, 19 Nov 2021 07:27:27 -0500 Original-Received: from [2001:470:142:3::e] (port=48594 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo2zC-0001Nc-8L; Fri, 19 Nov 2021 07:27:22 -0500 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=OGXbygsA3wgIdvwMni1/4UNBAEO3r6Zuv9pPDjS1iJM=; b=dDBjudpUYXYF Vh8ZTeGuMT4TJbSKtPdX6mYEKZgCCgkpgdUsSJcZtk7Hvs699bSjz76bIJUUAbpBm3JIlqDTswJ5Q mU6eUNe3vYkGUA4AT1s8gwuOlEmOV+VNGN0Hkc/NzHWozmIFVPLibDt3AZkKrvecVwu7N7zHqc7R6 hzrMlJwHIXrzzIsT8uLWZjgYOVhJ6+gcN40V8bbSwpfCKLuoBIM9weNcrmFR2OYrZnetdFENIBkim U+PQLsNwgv7hYUVYcWi+kMa10AM+shMJqoBEm0eD7U6FCLqIBGTm/C8XGUmn7eUeLdFbExBVa9Fmf aqeO3uFASG8msqCA0/McFQ==; Original-Received: from [87.69.77.57] (port=4828 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo2zB-0002ow-TP; Fri, 19 Nov 2021 07:27:22 -0500 In-Reply-To: <878rxko5gh.fsf@yahoo.com> (message from Po Lu on Fri, 19 Nov 2021 17:33:18 +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" Xref: news.gmane.io gmane.emacs.bugs:220413 Archived-At: > From: Po Lu > Cc: tumashu@163.com, larsi@gnus.org, 51821@debbugs.gnu.org > Date: Fri, 19 Nov 2021 17:33:18 +0800 > > Eli Zaretskii writes: > > >> I think he expects the text in the smaller font to be "centered" > >> vertically, instead of sharing the same baseline as the Chinese font, > >> but I'm not sure. > > > Really? That can be done, but won't it look ugly on display? > > IMO yes, but other people might have differing opinions. Would it hurt > to make this an option? I'd rather not introduce one more option to control the line height unless it's really needed. The code there is already a "maze of twisted passages all alike", quite hard to understand and modify, so adding one more option could easily break something. For now, it does sound like Feng Shu wants the baseline aligned, so such an option is not required yet. > > Do other GUI applications do that with mixed CJK and non-CJK fonts? > > I found out earlier that the other applications simply scale the > overlarge glyphs to fit some predefined height. Emacs doesn't scale the font glyphs, AFAIK, primarily because that won't work with bitmapped fonts, which we still support and which some users still use (I remember recent enough bug reports due to some change that broke bitmapped fonts). We let the font backend do the scaling, when we request a font of certain size, and the result is what you see now. But if you or someone else know how to scale font glyphs on the fly, please show the code. The main difficulty her, as I see it, is to decide to which size to scale, since each character can have a glyph with different metrics.