From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#20628: 25.0.50; Incorrect line height for some fonts Date: Fri, 22 May 2015 18:33:43 +0200 Message-ID: <87twv44lnc.fsf@gmail.com> References: <555E9C2E.8040008@live.com> <83617l5aox.fsf@gnu.org> <87pp5s2a77.fsf@gmail.com> <83wq004x2w.fsf@gnu.org> <83twv44vd3.fsf@gnu.org> <87egm87ny6.fsf@gmail.com> <83oalc4syu.fsf@gnu.org> <87617k7m5u.fsf@gmail.com> <83mw0w4seb.fsf@gnu.org> <87zj4w66ds.fsf@gmail.com> <83lhgg4qhf.fsf@gnu.org> <87iobk64e6.fsf@gmail.com> <83h9r44o63.fsf@gnu.org> <87pp5sy4vu.fsf@gmail.com> <83egm84mj3.fsf@gnu.org> <87617k6127.fsf@gmail.com> <83d21s4lpx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1432312883 31664 80.91.229.3 (22 May 2015 16:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 16:41:23 +0000 (UTC) Cc: clement.pitclaudel@live.com, 20628@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 22 18:41:11 2015 Return-path: Envelope-to: geb-bug-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 1Yvq0V-0002dU-KN for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 18:41:11 +0200 Original-Received: from localhost ([::1]:35040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvq0V-0005sF-30 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 12:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvq0R-0005ry-JP for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 12:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvq0N-000296-CL for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 12:41:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvq0N-00028x-8m for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 12:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yvq0M-00079t-GI for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 12:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 May 2015 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20628 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20628-submit@debbugs.gnu.org id=B20628.143231281127445 (code B ref 20628); Fri, 22 May 2015 16:41:02 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 22 May 2015 16:40:11 +0000 Original-Received: from localhost ([127.0.0.1]:53121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvpzU-00078Y-3Y for submit@debbugs.gnu.org; Fri, 22 May 2015 12:40:10 -0400 Original-Received: from mail-wg0-f45.google.com ([74.125.82.45]:34918) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvpzP-00077y-Ok for 20628@debbugs.gnu.org; Fri, 22 May 2015 12:40:05 -0400 Original-Received: by wgfl8 with SMTP id l8so22957638wgf.2 for <20628@debbugs.gnu.org>; Fri, 22 May 2015 09:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=7fKNyJP1CV4YBzTcPguqe3/r7iIehyY7FBC7PTGKe7A=; b=v7BRFa2G4VDACfTCYTlLG2GDtxgGobrkdm6rJ3Q/fi7F77+1jZN21Fa5eid4b6RVtV /qInZG/nIqoXtmC2dHtZA5AwfdZQjBQvso4avhABnAldPMw8LhlZ9Of32kztw8RWYO0A Vk2gwPL+bd68DVXbq8ovv0pSnYg5xYXTjcZOf0dQOlJ17SBNU5jTLSKV3bAG8QshFXcy dc7Xgwzf+Tc42AEPYLmUIhzxa6JAWGj/MDNCSUquFxNH9cVmKx7ExFmCR9G7mSGWDL7R MBzBMD93mIpIwVW93ioa/5SLEM/UxV9mk0WiEV/mVh2uDMx2SROloJ8iEJ4iODRq89vL K1cw== X-Received: by 10.194.79.225 with SMTP id m1mr16971414wjx.8.1432312798051; Fri, 22 May 2015 09:39:58 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by mx.google.com with ESMTPSA id a18sm3871300wja.46.2015.05.22.09.39.57 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 May 2015 09:39:57 -0700 (PDT) In-Reply-To: <83d21s4lpx.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 May 2015 19:32:10 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103046 Archived-At: Eli Zaretskii writes: >> From: Oleh Krehel >> Cc: clement.pitclaudel@live.com, 20628@debbugs.gnu.org >> Date: Fri, 22 May 2015 18:15:28 +0200 >> >> >> So far I've tracked the bug to xftfont_open, where instead of the >> >> usual >> >> >> >> font ascent: 14, descent: 5 >> >> >> >> I get for the 120755 char: >> >> >> >> font ascent: 54, descent: 46 > > According to what I see here 120755 (#x1d7b3) is the same kappa symbol > as #x1d779, just in italic form. Not sure why Emacs on your system > displays the former when you request the latter, but at least it's the > same letter. Perhaps the font driver substitutes one for the other? Could be. I don't mind that really, just the ascent/descent. >> > How is this strange character displayed, eventually? Is it displayed >> > as a character or as a box with its hex code? >> >> It's displayed just the way gedit displays it, only with a huge (3 line >> height) ascent and a huge (3 line height) descent. So the line with the >> char is effectively 7 times taller than a regular line. >> >> Also, I've tracked the font family of the char to be "Latin Modern >> Mathfont" in xftfont_open. > > Math fonts are notorious for requesting huge ascent and descent > values. I always disable them using fontsets. Can you explain what are fontsets and how to use the to disable ascent/descent in math? Is it possible for Emacs to do so by default? In any case, here's more data for the bad font that gets created with XftFontOpenPattern. Family: $ p (FcChar8 *) SDATA (SYMBOL_NAME (val)) "Latin Modern Math" Foundry: $ p (FcChar8 *) SDATA (SYMBOL_NAME (val)) "unknown" Filename: $ p (FcChar8 *) SDATA (filename) "/usr/share/texmf/fonts/opentype/public/lm-math/latinmodernmath-regular.otf" So it might be that I could just patch latinmodernmath-regular.otf to fix the problem. Or maybe Emacs could fix the problem specifically for this file / font family. That's what gedit does, I guess.