unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Cc: 19993@debbugs.gnu.org
Subject: bug#19993: 25.0.50; Unicode fonts defective on Windows
Date: Wed, 04 Mar 2015 19:59:56 +0200	[thread overview]
Message-ID: <83egp4prs3.fsf@gnu.org> (raw)
In-Reply-To: <20150303220228.GA28969@math.berkeley.edu>

> Date: Tue, 3 Mar 2015 14:02:28 -0800
> From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
> 
> (A) On Windows, most Unicode characters won’t be shown, even if the system 
>     has (many) fonts covering the characters (and these fonts are listed in 
>     `font-log'!).

Examples, please: they are required to debug the issue.  Please
include with the examples the information about the font(s) which
support the problematic characters, but are not used although
installed.  Or, if you already debugged this and can tell which code
misbehaves, please post that information.

> (C) Even if a character is (eventually) shown, it may take several seconds
>     after the character is typed.  E.g., typing
>       ℱ
>     gives a 2sec delay on my system (a pretty quick PC).  It is shown using
>       uniscribe:-outline-MS Gothic-normal-normal-normal-mono-13-*-*-*-c-*-jisx0208*-* (#x3D3)

That delay should happen only once, when any character from the font
is first displayed.  The next character from the same font should not
cause any perceptible delays.  If this is what you see, then the delay
is due to the font driver (a.k.a. "shaping engine", Uniscribe on
Windows) searching the system for a suitable font, under control of
the Emacs code (in font.c and fontset.c).

A good example of this is "C-h H": the first time you type that in
"emacs -Q", it takes a long time before the HELLO buffer displays.
But if you kill that buffer and immediately invoke "C-h H" again, the
display is instantaneous.

This is not specific to Windows in any way, AFAIK, the Emacs code
which looks for a suitable font is system-independent.

If there are ways to speed up font search, we should do that, of
course.  Patches to make the search speedier are welcome.

> (D) After typing as in (C), many operations become unusable.  (E.g., showing 
>     documentation for font-log takes several minutes to display the end of 
>     the buffer.  Save the buffer to a file — and it takes 4.5MB.)

Yes, similar to "C-h H".  Any buffer that uses a lot of different
fonts will hit this.

>   2) one should make the list of encodings to load (I mean those in 
>      `describe-fontset') system-dependent, and — on contemporary 
>      systems — default to iso10646 *ONLY*.

Sorry, I don't understand what that means.  First, why should the list
of encodings be system-dependent?  Those encodings are universal,
i.e. there are no encodings that are unusable on any particular
system.  And your suggestion to use iso10646 actually means it will be
system-independent, no?

Second, what do you mean by "default to iso10646"?  Do you mean that
by default there should be no support for other encodings?  If so,
why?

Or maybe you mean that the default font used by "emacs -Q" should
support as wide a range of Unicode as possible?  If so, I think we
already do that.

>   3) Improve the docs (but I would try to address this in a separate
>      bug report).

Indeed, font-related issues in Emacs are notoriously under-documented,
both on the user level, and on the ELisp level.





  reply	other threads:[~2015-03-04 17:59 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 22:02 bug#19993: 25.0.50; Unicode fonts defective on Windows Ilya Zakharevich
2015-03-04 17:59 ` Eli Zaretskii [this message]
2015-03-05 21:49   ` Ilya Zakharevich
2015-03-05 22:05   ` Ilya Zakharevich
2015-03-06 10:45     ` Eli Zaretskii
2015-03-06 11:38       ` Ilya Zakharevich
2015-03-06 14:00         ` Eli Zaretskii
2015-03-06 16:21           ` Ilya Zakharevich
2015-03-06 20:11             ` Eli Zaretskii
2015-03-06 21:12               ` Eli Zaretskii
2015-03-06 22:13                 ` Ilya Zakharevich
2015-03-07  8:18                   ` Eli Zaretskii
2015-03-08  7:45                     ` Ilya Zakharevich
2015-03-08 15:52                       ` Eli Zaretskii
2015-03-08  8:38                     ` Ilya Zakharevich
2015-03-08  8:46                       ` Ilya Zakharevich
2015-03-10 16:29                         ` Ilya Zakharevich
2015-03-10 17:05                           ` Eli Zaretskii
2015-03-10 17:41                             ` Eli Zaretskii
2015-03-10 20:32                               ` Ilya Zakharevich
2015-03-11  4:28                                 ` Eli Zaretskii
2015-03-11 19:49                               ` Ilya Zakharevich
2015-03-11 20:21                                 ` Eli Zaretskii
2015-03-12 18:16                                   ` Eli Zaretskii
2015-03-13  1:52                                     ` Ilya Zakharevich
2015-03-13  7:34                                       ` Eli Zaretskii
2015-03-13  4:50                                     ` Ilya Zakharevich
2015-03-13  6:16                                       ` Eli Zaretskii
2015-03-08 15:55                       ` Eli Zaretskii
2015-03-06 22:08               ` Ilya Zakharevich
2015-03-07  8:14                 ` Eli Zaretskii
2015-03-08  7:41                   ` Ilya Zakharevich
2015-03-08 15:51                     ` Eli Zaretskii
2015-03-08 16:20                       ` Ilya Zakharevich
2015-03-08 17:01                         ` 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=83egp4prs3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=19993@debbugs.gnu.org \
    --cc=nospam-abuse@ilyaz.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 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).