diff options
| author | Eli Zaretskii | 2016-11-16 18:11:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-11-16 18:11:33 +0200 |
| commit | e992ac0a639d01df8f04c18061b0d73f792ff2c2 (patch) | |
| tree | cc3400264f59511bf86b1d762bf57acfb2104c81 | |
| parent | 1fc101b0c4009e664c102b896e8d510f4821e754 (diff) | |
| download | emacs-e992ac0a639d01df8f04c18061b0d73f792ff2c2.tar.gz emacs-e992ac0a639d01df8f04c18061b0d73f792ff2c2.zip | |
Fix sluggish display of symbols in UTF-8 language environment
* lisp/international/fontset.el (setup-default-fontset): Make sure
Symbola and FreeMono are set up in the default fontset as belonging
to the "iso10646-1" registry. In the UTF-8 locale, this avoids a
long and futile search for a suitable font, whose side effect is a
lot of consing, which then hits the font-cache compacting issue,
and causes very sluggish redisplay of characters displayed by
these fonts. All this happens because the default for the
registry is "iso8859-1". (Bug#24953)
| -rw-r--r-- | lisp/international/fontset.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index 612c0a08ad7..659f03a2a67 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -812,10 +812,11 @@ | |||
| 812 | (#x1F700 . #x1F77F) ;; Alchemical Symbols | 812 | (#x1F700 . #x1F77F) ;; Alchemical Symbols |
| 813 | (#x1F780 . #x1F7FF) ;; Geometric Shapes Extended | 813 | (#x1F780 . #x1F7FF) ;; Geometric Shapes Extended |
| 814 | (#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C | 814 | (#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C |
| 815 | (set-fontset-font "fontset-default" symbol-subgroup "Symbola" nil 'prepend)) | 815 | (set-fontset-font "fontset-default" symbol-subgroup |
| 816 | '("Symbola" . "iso10646-1") nil 'prepend)) | ||
| 816 | ;; Box Drawing and Block Elements | 817 | ;; Box Drawing and Block Elements |
| 817 | (set-fontset-font "fontset-default" '(#x2500 . #x259F) | 818 | (set-fontset-font "fontset-default" '(#x2500 . #x259F) |
| 818 | "FreeMono" nil 'prepend) | 819 | '("FreeMono" . "iso10646-1") nil 'prepend) |
| 819 | 820 | ||
| 820 | ;; Since standard-fontset-spec on X uses fixed-medium font, which | 821 | ;; Since standard-fontset-spec on X uses fixed-medium font, which |
| 821 | ;; gets mapped to a iso8859-1 variant, we would like to prefer its | 822 | ;; gets mapped to a iso8859-1 variant, we would like to prefer its |