]> code.delx.au - gnu-emacs/commitdiff
Improve the default fontset when Symbola is not installed
authorEli Zaretskii <eliz@gnu.org>
Sat, 13 Jun 2015 11:51:33 +0000 (14:51 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Jun 2015 11:51:33 +0000 (14:51 +0300)
* lisp/international/fontset.el (setup-default-fontset): Only
prepend Symbola and FreeMono font specs for symbols and
punctuation; do not replace the default spec for them.  This
should have better results when Symbola/FreeMono are not
installed.  (Bug#20727)

lisp/international/fontset.el

index 8daa4b6ce78201d52d57f6a67026f2238803ed27..696940e21c82ddbbb8385add4767e47662a045bf 100644 (file)
              (#x1F700 . #x1F77F)       ;; Alchemical Symbols
              (#x1F780 . #x1F7FF)       ;; Geometric Shapes Extended
              (#x1F800 . #x1F8FF)))     ;; Supplemental Arrows-C
-    (set-fontset-font "fontset-default" symbol-subgroup "Symbola"))
+    (set-fontset-font "fontset-default" symbol-subgroup "Symbola" nil 'prepend))
   ;; Box Drawing and Block Elements
-  (set-fontset-font "fontset-default" '(#x2500 . #x259F) "FreeMono")
+  (set-fontset-font "fontset-default" '(#x2500 . #x259F)
+                    "FreeMono" nil 'prepend)
 
   ;; Append CJK fonts for characters other than han, kana, cjk-misc.
   ;; Append fonts for scripts whose name is also a charset name.