bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31316: Emacs hangs in `font_open_entity'


From: Lars Ingebrigtsen
Subject: bug#31316: Emacs hangs in `font_open_entity'
Date: Sun, 17 Nov 2019 09:23:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Werner LEMBERG <wl@gnu.org> writes:

> If I call `emacs -Q' and load the attached file `testchar' with
>
>   C-x RET c gb18030 C-x C-f testchar
>
> Emacs hangs in `font_open_entity' on my GNU/Linux box:
>
>   for (psize = pixel_size; ; psize++)
>     {
>       font_object = driver_list->driver->open (f, entity, psize);
>       if (NILP (font_object))
>         return Qnil;
>       font = XFONT_OBJECT (font_object);
>       if (font->average_width > 0 && font->height > 0)
>         break;
>     }
>
> Both `average_width' and `height' are always zero for `font'
> regardless of `psize'; this effectively makes the above code an
> endless loop.

I tried reproducing this with Emacs 27 (on a Debian laptop), and I get
no hangs.  Are you still seeing this problem?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]