unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Steven Allen <steven@stebalien.com>
Cc: 26333@debbugs.gnu.org
Subject: bug#26333: 26.0.50; Hang when displaying some special characters for the first time
Date: Sun, 02 Apr 2017 19:35:37 +0300	[thread overview]
Message-ID: <83zifypy1y.fsf@gnu.org> (raw)
In-Reply-To: <87fuhriy91.fsf@bistromath> (message from Steven Allen on Sat, 01 Apr 2017 15:00:58 -0700)

> From: Steven Allen <steven@stebalien.com>
> Cc: 26333@debbugs.gnu.org
> Date: Sat, 01 Apr 2017 15:00:58 -0700
> 
> 
> So, I could have sworn I tested this with emacs -Q when I first found
> the bug (I've been sitting on it for a while) but I guess I didn't. I
> apologize.
> 
> It only reproduces for certain fonts.
> 
> Known Bad: Source Code Pro, Office Code Pro, Fira Mono
> Known Good: Symbola, DejaVu Sans Mono (the default on my system)
> 
> So, to reproduce, evaluate the following before pasting the special
> character.
> 
>   (set-face-attribute 'default nil :font "Source Code Pro-10")

Is this the only thing one has to do, in "emacs -Q", in order to
reproduce the problem with these fonts?  Or do you have other
font-related customizations on your init files?

> Eli Zaretskii <eliz@gnu.org> writes:
> > That's normal:
> 
> Hardly. 15 seconds is a *long* time for a computer and every other
> application displays the character in question instantly. Not even
> regenerating my entire font cache (fc-cache) takes that long.

I meant "normal" as in "Emacs is known to do that sometimes when
searching for a font".  I'm not sure comparison with other
applications is valid, as Emacs attempts to solve a more complex
problem, and its font-searching algorithms are biased in favor of
finding fonts which support scripts and languages, not symbols.

As for comparison with fc-cache, Emacs many times examines each font
several times with different options, so it could be slower.

> > If you install the Symbola font, I think the search will
> > be much faster.
> 
> I do have Symbola installed and the character does display correctly
> eventually.

Is it eventually displayed using Symbola or some other font?





  parent reply	other threads:[~2017-04-02 16:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-01 19:20 bug#26333: 26.0.50; Hang when displaying some special characters for the first time Steven Allen
2017-04-01 20:44 ` Eli Zaretskii
2017-04-01 22:00   ` Steven Allen
2017-04-01 22:48     ` Andreas Politz
2017-04-02 16:35     ` Eli Zaretskii [this message]
2017-04-02 17:14       ` Steven Allen
2017-04-02 17:43         ` Steven Allen
2022-01-23 16:17 ` Lars Ingebrigtsen
2022-01-23 16:44   ` Eli Zaretskii
2022-01-23 17:00     ` Eli Zaretskii
2022-02-20 19:32   ` 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

  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=83zifypy1y.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=26333@debbugs.gnu.org \
    --cc=steven@stebalien.com \
    /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 public inbox

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

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).