From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Height of Unicode chars is not right Date: Tue, 22 Sep 2015 19:41:05 +0300 Message-ID: <83zj0el84e.fsf@gnu.org> References: <1d60e77d-ab45-46e5-b0c7-39c653a9fda8@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1442940083 9048 80.91.229.3 (22 Sep 2015 16:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2015 16:41:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 22 18:41:15 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZeQcv-00084j-8f for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Sep 2015 18:41:09 +0200 Original-Received: from localhost ([::1]:41460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeQcu-0005sC-K4 for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Sep 2015 12:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeQcj-0005ry-SQ for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 12:40:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeQcg-00018H-Ib for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 12:40:57 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:49510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeQcg-00017Y-BS for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 12:40:54 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NV300P0076E3H00@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 19:37:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV300D2K7I3VBB0@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 19:37:15 +0300 (IDT) In-reply-to: <1d60e77d-ab45-46e5-b0c7-39c653a9fda8@googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107286 Archived-At: > Date: Tue, 22 Sep 2015 09:08:38 -0700 (PDT) > From: Rusi >=20 > On Tuesday, September 22, 2015 at 9:21:25 PM UTC+5:30, =C3=93scar F= uentes wrote: > > Grant Rettke writes: > >=20 > > > On Tue, Sep 22, 2015 at 10:13 AM, Rusi wrote: > > >> Some unicode chars display with excessive height > > >> eg if the file (buffer) has these 3 lines > > > > > >> emacs shows the =E2=88=80 as having 3 lines and the cursor tri= ples its height on that > > >> The fraktur L =F0=9D=94=8F looks like 5 (2 above 2 below) > > >> > > >> What should I do? > > > > > > What version of Emacs are you using?=20 >=20 > 24.4.1 The development sources fix this problem. > > And check that the font used for those Unicode chars is the same = as for > > the ASCII chars. Sometimes Emacs will swith to another font for > > displaying certain chars despite the default font having support = for > > those chars. > >=20 > > M-x describe-char with the cursor on the interesting char will te= ll you > > the font used. >=20 > C-u C-x =3D for these three give >=20 > =E2=88=80: xft:-unknown-TeX Gyre Termes Math-normal-normal-normal-*= -17-*-*-*-*-0-iso10646-1 (#xEFE) >=20 > a: xft:-unknown-Ubuntu Mono-normal-normal-normal-*-17-*-*-*-m-0-iso= 10646-1 (#x44) >=20 > =F0=9D=94=8F: xft:-unknown-Latin Modern Math-normal-normal-normal-*= -17-*-*-*-*-0-iso10646-1 (#xD99) The Latin Modern Math font (and many other "math" fonts) specify a preposterously large global height value. Previously, Emacs always obeyed that global value, with the effect that you see. In the development sources, we ignore such large values, and instead compute our own value using the actual characters from the font. If you want to work around that in Emacs before 25.1, find a font tha= t supports those symbols, but does not specify such large height values= .