mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 01:34:21 +00:00
Enable the system's Arabic and Khmer fonts under Android
* lisp/international/fontset.el (setup-default-fontset): If `android', search for Arabic or Khmer fonts with script tags, not OTF features.
This commit is contained in:
parent
e6a2901b1b
commit
44fcab04f6
1 changed files with 11 additions and 3 deletions
|
|
@ -645,8 +645,14 @@
|
|||
(nil . "microsoft-cp1251")
|
||||
(nil . "koi8-r"))
|
||||
|
||||
(arabic ,(font-spec :registry "iso10646-1"
|
||||
:otf '(arab nil (init medi fina liga)))
|
||||
(arabic ,(if (featurep 'android)
|
||||
;; The Android font driver does not support the
|
||||
;; detection of OTF tags but all fonts installed on
|
||||
;; Android with Arabic characters provide shaping
|
||||
;; information required for displaying Arabic text.
|
||||
(font-spec :registry "iso10646-1" :script 'arabic)
|
||||
(font-spec :registry "iso10646-1"
|
||||
:otf '(arab nil (init medi fina liga))))
|
||||
(nil . "MuleArabic-0")
|
||||
(nil . "MuleArabic-1")
|
||||
(nil . "MuleArabic-2")
|
||||
|
|
@ -657,7 +663,9 @@
|
|||
(hebrew ,(font-spec :registry "iso10646-1" :script 'hebrew)
|
||||
(nil . "ISO8859-8"))
|
||||
|
||||
(khmer ,(font-spec :registry "iso10646-1" :otf '(khmr nil (pres))))
|
||||
(khmer ,(if (featurep 'android)
|
||||
(font-spec :registry "iso10646-1" :script 'khmer)
|
||||
(font-spec :registry "iso10646-1" :otf '(khmr nil (pres)))))
|
||||
|
||||
(kana (nil . "JISX0208*")
|
||||
(nil . "GB2312.1980-0")
|
||||
|
|
|
|||
Loading…
Reference in a new issue