unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Height of Unicode chars is not right
Date: Tue, 22 Sep 2015 19:41:05 +0300	[thread overview]
Message-ID: <83zj0el84e.fsf@gnu.org> (raw)
In-Reply-To: <1d60e77d-ab45-46e5-b0c7-39c653a9fda8@googlegroups.com>

> Date: Tue, 22 Sep 2015 09:08:38 -0700 (PDT)
> From: Rusi <rustompmody@gmail.com>
> 
> On Tuesday, September 22, 2015 at 9:21:25 PM UTC+5:30, Óscar Fuentes wrote:
> > Grant Rettke  writes:
> > 
> > > 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 ∀ as having 3 lines and the cursor triples its height on that
> > >> The fraktur L 𝔏 looks like 5 (2 above 2 below)
> > >>
> > >> What should I do?
> > >
> > > What version of Emacs are you using? 
> 
> 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.
> > 
> > M-x describe-char with the cursor on the interesting char will tell you
> > the font used.
> 
> C-u C-x = for these three give
> 
> ∀: xft:-unknown-TeX Gyre Termes Math-normal-normal-normal-*-17-*-*-*-*-0-iso10646-1 (#xEFE)
> 
> a: xft:-unknown-Ubuntu Mono-normal-normal-normal-*-17-*-*-*-m-0-iso10646-1 (#x44)
> 
> 𝔏: 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 that
supports those symbols, but does not specify such large height values.




  reply	other threads:[~2015-09-22 16:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-22 15:13 Height of Unicode chars is not right Rusi
2015-09-22 15:45 ` Grant Rettke
2015-09-22 15:50   ` Óscar Fuentes
2015-09-22 15:59   ` Sergey Organov
     [not found]   ` <mailman.1606.1442937082.19560.help-gnu-emacs@gnu.org>
2015-09-22 16:08     ` Rusi
2015-09-22 16:41       ` Eli Zaretskii [this message]
2015-09-22 17:27         ` Rasmus
2015-09-22 16:52       ` Óscar Fuentes
2015-09-22 17:05         ` Eli Zaretskii
2015-09-22 17:12           ` Óscar Fuentes
2015-09-22 17:31             ` Eli Zaretskii
     [not found]         ` <mailman.1615.1442941512.19560.help-gnu-emacs@gnu.org>
2015-09-22 17:10           ` Rusi
     [not found]       ` <mailman.1610.1442940060.19560.help-gnu-emacs@gnu.org>
2015-09-23  1:57         ` Rusi
2015-09-23  6:47           ` Eli Zaretskii
     [not found]           ` <mailman.1638.1442990857.19560.help-gnu-emacs@gnu.org>
2015-09-23 17:19             ` Rusi
2015-09-23 19:05               ` Óscar Fuentes
2015-09-23 19:06               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zj0el84e.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).