From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20628: 25.0.50; Incorrect line height for some fonts Date: Sat, 23 May 2015 10:20:45 +0300 Message-ID: <83h9r33gky.fsf@gnu.org> 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> <87twv44lnc.fsf@gmail.com> <87egm84kp2.fsf@gmail.com> <83a8ww4grx.fsf@gnu.org> <87382oml31.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432365688 1582 80.91.229.3 (23 May 2015 07:21:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2015 07:21:28 +0000 (UTC) Cc: clement.pitclaudel@live.com, ohwoeowho@gmail.com, 20628@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 23 09:21:16 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 1Yw3kB-0005h6-GH for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 May 2015 09:21:15 +0200 Original-Received: from localhost ([::1]:37004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw3kA-0004Eu-IE for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 May 2015 03:21:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw3k4-0004Ej-6w for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 03:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yw3k0-0001bc-57 for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 03:21:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw3k0-0001bY-29 for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 03:21:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yw3jz-0008WI-Gg for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 03:21:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2015 07:21:03 +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.143236566232731 (code B ref 20628); Sat, 23 May 2015 07:21:03 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 23 May 2015 07:21:02 +0000 Original-Received: from localhost ([127.0.0.1]:53405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw3jt-0008Vn-CM for submit@debbugs.gnu.org; Sat, 23 May 2015 03:21:01 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:33320) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw3jn-0008VT-0s for 20628@debbugs.gnu.org; Sat, 23 May 2015 03:20:55 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NOS00C00K37LY00@a-mtaout20.012.net.il> for 20628@debbugs.gnu.org; Sat, 23 May 2015 10:20:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOS00C8MKEK5790@a-mtaout20.012.net.il>; Sat, 23 May 2015 10:20:44 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:103081 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , clement.pitclaudel@live.com, 20628@debbugs.gnu.org > Date: Fri, 22 May 2015 18:43:56 -0400 > > > The reason gedit was working fine previously is that it never used > > "Latin Modern Math", it used some other font. > > IOW Emacs doesn't seem to behave differently from other applications > w.r.t this font, except for the fact that it ends up selecting up while > other apps select another font instead. > > So the question becomes: why does Emacs select this font and how could > we change ti so it selects something else. Emacs selects that font because it's available, and claims support for the particular character Emacs needs to display. The only mechanism we currently have for tailoring the fonts used for specific ranges of characters is by defining the standard fontsets. The ones we provide out of the box are set up on fontset.el, which see. > BTW, I think that using something like > > (set-fontset-font fontset 'unicode (font-spec :name "Symbola") nil 'append) > or > (set-fontset-font "fontset-default" '(#x1d400 . #x1d7ff) "Symbola") > > just sucks: we don't want to say "use Symbola", but we instead want to > say something like "avoid Latin Modern Math" or "ignore Latin Modern > Math's ascent/descent information". We don't have such a feature, AFAIK. At least not a documented one. And I don't agree with the "just sucks" part: there are use cases when the user might prefer a specific font for valid reason, e.g. the quality of the glyphs. If there are more than a few fonts on the system that support the same range of characters, it is easier to prefer one than to un-prefer the rest. Also, there are fonts that claim support for a specific block, but in fact support that block only partially, in some extreme cases just a few characters. Emacs's naive (due to efficiency considerations) way of looking up suitable fonts might yield a negative result, where a font is chosen that claims support, and then turns out not to have a glyph for the specific character we need to display. In this situation, making a fontset that names a font with good coverage for some block is the way to go.