aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-06-08 21:04:08 +0300
committerEli Zaretskii2015-06-08 21:04:08 +0300
commit8d9e5bab41aa1995d801112b8413b514e59f033e (patch)
tree377a5ac2b7d166ed120176e1c13147553add2290
parent20de61c833d4c975dc1ed3062d8de75df8b5cd93 (diff)
downloademacs-8d9e5bab41aa1995d801112b8413b514e59f033e.tar.gz
emacs-8d9e5bab41aa1995d801112b8413b514e59f033e.zip
Improve the default fontset wrt symbols
* lisp/international/fontset.el (setup-default-fontset): Better setup of fontset-default for symbols: use Symbola and FreeMono. (Bug#20727)
-rw-r--r--lisp/international/fontset.el45
1 files changed, 45 insertions, 0 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index 06a47af0103..ebf12906ecb 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -693,6 +693,51 @@
693 (cons (car math-subgroup) (nth 1 math-subgroup)) 693 (cons (car math-subgroup) (nth 1 math-subgroup))
694 (font-spec :registry "iso10646-1" :script (nth 2 math-subgroup)))) 694 (font-spec :registry "iso10646-1" :script (nth 2 math-subgroup))))
695 695
696 ;; Special setup for various symbols and some rarely used characters
697 ;; covered well by Symbola.
698 (dolist (symbol-subgroup '((#x0250 . #x02AF) ;; IPA Extensions
699 (#x0370 . #x03FF) ;; Greek and Coptic
700 (#x0500 . #x052F) ;; Cyrillic Supplement
701 (#x2000 . #x206F) ;; General Punctuation
702 (#x2070 . #x209F) ;; Superscripts and Subscripts
703 (#x20A0 . #x20CF) ;; Currency Symbols
704 (#x2100 . #x214F) ;; Letterlike Symbols
705 (#x2150 . #x218F) ;; Number Forms
706 (#x2190 . #x21FF) ;; Arrows
707 (#x2200 . #x22FF) ;; Mathematical Operators
708 (#x2300 . #x23FF) ;; Miscellaneous Technical
709 (#x2400 . #x243F) ;; Control Pictures
710 (#x2440 . #x245F) ;; Optical Char Recognition
711 (#x2460 . #x24FF) ;; Enclosed Alphanumerics
712 (#x25A0 . #x25FF) ;; Geometric Shapes
713 (#x2600 . #x26FF) ;; Miscellaneous Symbols
714 (#x2700 . #x27bF) ;; Dingbats
715 (#x27C0 . #x27EF) ;; Misc Mathematical Symbols-A
716 (#x27F0 . #x27FF) ;; Supplemental Arrows-A
717 (#x2900 . #x297F) ;; Supplemental Arrows-B
718 (#x2980 . #x29FF) ;; Misc Mathematical Symbols-B
719 (#x2A00 . #x2AFF) ;; Suppl. Math Operators
720 (#x2B00 . #x2BFF) ;; Misc Symbols and Arrows
721 (#x2E00 . #x2E7F) ;; Supplemental Punctuation
722 (#x4DC0 . #x4DFF) ;; Yijing Hexagram Symbols
723 (#xFE10 . #xFE1F) ;; Vertical Forms
724 (#x10100 . #x1013F) ;; Aegean Numbers
725 (#x102E0 . #x102FF) ;; Coptic Epact Numbers
726 (#x1D000 . #x1D0FF) ;; Byzanthine Musical Symbols
727 (#x1D200 . #x1D24F) ;; Ancient Greek Musical Notation
728 (#x1F0A0 . #x1F0FF) ;; Playing Cards
729 (#x1F100 . #x1F1FF) ;; Enclosed Alphanumeric Suppl
730 (#x1F300 . #x1F5FF) ;; Misc Symbols and Pictographs
731 (#x1F600 . #x1F64F) ;; Emoticons
732 (#x1F650 . #x1F67F) ;; Ornamental Dingbats
733 (#x1F680 . #x1F6FF) ;; Transport and Map Symbols
734 (#x1F700 . #x1F77F) ;; Alchemical Symbols
735 (#x1F780 . #x1F7FF) ;; Geometric Shapes Extended
736 (#x1F800 . #x1F8FF))) ;; Supplemental Arrows-C
737 (set-fontset-font "fontset-default" symbol-subgroup "Symbola"))
738 ;; Box Drawing and Block Elements
739 (set-fontset-font "fontset-default" '(#x2500 . #x259F) "FreeMono")
740
696 ;; Append CJK fonts for characters other than han, kana, cjk-misc. 741 ;; Append CJK fonts for characters other than han, kana, cjk-misc.
697 ;; Append fonts for scripts whose name is also a charset name. 742 ;; Append fonts for scripts whose name is also a charset name.
698 (let* ((data (build-default-fontset-data)) 743 (let* ((data (build-default-fontset-data))