all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Werner LEMBERG <wl@gnu.org>
Cc: 33885@debbugs.gnu.org
Subject: bug#33885: 27.0.50; PUA character makes emacs crash
Date: Fri, 28 Dec 2018 11:16:17 +0200	[thread overview]
Message-ID: <83y38a57vi.fsf@gnu.org> (raw)
In-Reply-To: <20181228.093333.165832196476716655.wl@gnu.org> (message from Werner LEMBERG on Fri, 28 Dec 2018 09:33:33 +0100 (CET))

> Date: Fri, 28 Dec 2018 09:33:33 +0100 (CET)
> Cc: bug-gnu-emacs@gnu.org, 33885@debbugs.gnu.org
> From: Werner LEMBERG <wl@gnu.org>
> 
> ... a font that *does* have this character (following the MUFI
> standard to display characters for medieval research).
> 
>   https://folk.uib.no/hnooh/mufi/
> 
> The font in question is `Cardo Regular', Version 1.045, which you
> can freely download as
> 
>   http://scholarsfonts.net/cardo104.zip
> 
> (Note that the Google variant of this font doesn't contain the MUFI
> characters.)
> 
> Character U+E6A3 gets mapped to glyph 3817, `uni00720325', which is
> glyph `r' with a ring below; the `ttx' font disassembler shows the
> following entry from the font's `glyf' table:
> 
>   <TTGlyph name="uni00720325" xMin="52" yMin="-510" xMax="747" yMax="927">
>     <component glyphName="r" x="0" y="0" flags="0x204"/>
>     <component glyphName="ring" x="-39" y="-1589" flags="0x4"/>
>   </TTGlyph>

Does this explain why the descent comes out negative?  (I'm not an
expert on font metrics.)

> > So please step through x_produce_glyphs when Emacs needs to produce
> > a glyph for this character, and tell how you end up with both ascent
> > and descent values zero.  It isn't supposed to happen with valid
> > fonts.
> 
> Uh, oh, I'm completely lost in this function; nowhere I can get
> information on the font's name.  Additionally, there is no repeatable
> way to set a breakpoint right before the crash; the number of
> iterations are different each time.

The way I would suggest to put a useful breakpoint there is this:

  break x_produce_glyphs if it->char_to_display == 0xe6a3

See also a few more questions I asked in the follow-up message.

(I will try to install that font, but that might take a few days.  In
the meantime, if you can report the additional information, I might be
able to come up with a patch even without installing the font and
reproducing the problem here.)

Thanks.





  reply	other threads:[~2018-12-28  9:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-27  8:54 bug#33885: 27.0.50; PUA character makes emacs crash Werner LEMBERG
2018-12-27 10:36 ` Eli Zaretskii
2018-12-27 11:33   ` Eli Zaretskii
2018-12-28  8:33   ` Werner LEMBERG
2018-12-28  9:16     ` Eli Zaretskii [this message]
2018-12-28 12:38       ` Werner LEMBERG
2018-12-28 13:30         ` Eli Zaretskii
2018-12-28 14:58           ` Werner LEMBERG
2018-12-28 15:33             ` Eli Zaretskii
2018-12-28 17:03               ` Werner LEMBERG
2018-12-28 17:06                 ` Werner LEMBERG
2018-12-28 19:15                 ` Eli Zaretskii
2022-02-12  8:42 ` Lars Ingebrigtsen
2022-02-12  8:57   ` Eli Zaretskii
2022-03-12 22:43     ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=83y38a57vi.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=33885@debbugs.gnu.org \
    --cc=wl@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.