unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Klaus-Dieter Bauer <bauer.klaus.dieter@gmail.com>
Cc: 24918@debbugs.gnu.org
Subject: bug#24918: 25.1; Fonts can make Emacs grind to a halt
Date: Wed, 30 Nov 2016 17:00:49 +0200	[thread overview]
Message-ID: <83r35tqafy.fsf@gnu.org> (raw)
In-Reply-To: <CANtbJLHCRhFKVPBacv5+8BaCjJNdp5KF4oALiWf8n0UZBpz-hg@mail.gmail.com> (message from Klaus-Dieter Bauer on Wed, 30 Nov 2016 11:01:32 +0100)

> From: Klaus-Dieter Bauer <bauer.klaus.dieter@gmail.com>
> Date: Wed, 30 Nov 2016 11:01:32 +0100
> Cc: 24918@debbugs.gnu.org
> 
> I now installed Symbola. In the real-world cases it solves the problem, but apparently it is not a full solution;
> Possibly sufficient for practical use, but mostly more efficient at masking the issue. (See especially the
> example below, where the issue occurs even when no fonts are available at all for a character.)
> 
> E.g. I used 
> 
> (with-selected-window
> (display-buffer (get-buffer-create "*foo*"))
> (goto-char (point-max))
> (cl-loop for _ upto 1000 ;; lower the limit if it crashes emacs
> with lmt = (+ 1 (max-char))
> for s = (string (random lmt))
> for col = (- (point) (line-beginning-position))
> if (< 30 col) do (insert "\n")
> do (insert s)))
> 
> to generate random unicode characters; For most no font is found at all (a hex-rectangle is displayed instead)
> display: no font available
> but some characters will be generated, where problematic fonts still come up.

If you need those characters to be displayed faster, you need to
configure your default fontset to cover them with Unicode fonts.  The
default fontset setup in Emacs tries not to get in the way of users
with too many special fonts, so not all the ranges are covered, unless
there are good free fonts for them.

> Additionally, one generated line was also heavily laggy, despite all characters saying "no font available", i.e.
> even without font substitution. I attached the line as "problematic-line.txt". Navigating into or out of this line – or
> from one character to the next, for about half the characters in the line, talks roughly 1 second on my system.

These characters are all unassigned codepoints (i.e., Unicode did not
yet assign any characters to those codepoints), as you can see in the
buffer shown by "C-u C-x =", so their display are not important in any
practical use case.

Thanks.





  reply	other threads:[~2016-11-30 15:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-10 15:53 bug#24918: 25.1; Fonts can make Emacs grind to a halt Klaus-Dieter Bauer
2016-11-10 16:20 ` Clément Pit--Claudel
2016-11-10 17:12 ` Eli Zaretskii
2016-11-10 22:05   ` Klaus-Dieter Bauer
2016-11-11  8:01     ` Eli Zaretskii
     [not found]       ` <CANtbJLGuWhD8jUQt_KEz82kpuknemNR8u2G71fqTav2bfrR-1Q@mail.gmail.com>
     [not found]         ` <83lgwc96nn.fsf@gnu.org>
     [not found]           ` <CANtbJLGpF-ME-rKFfTwpU28oJDcGr2ww2vJhPUx2zxqnreOXpQ@mail.gmail.com>
2016-11-28 15:47             ` Eli Zaretskii
2016-11-29 10:29               ` Klaus-Dieter Bauer
2016-11-29 14:09                 ` Clément Pit--Claudel
2016-11-29 17:47                 ` Eli Zaretskii
2016-11-29 22:42                   ` Klaus-Dieter Bauer
2016-11-30  3:42                     ` Eli Zaretskii
2016-11-30 10:01                       ` Klaus-Dieter Bauer
2016-11-30 15:00                         ` Eli Zaretskii [this message]
2016-12-01 10:21                           ` Klaus-Dieter Bauer
2016-12-01 17:31                             ` Eli Zaretskii
2016-11-29 23:17                 ` Alan Third
2016-11-30 15:09                   ` 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=83r35tqafy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24918@debbugs.gnu.org \
    --cc=bauer.klaus.dieter@gmail.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).