emacs font for western and Other like rtl

梦想与她 提交于 2019-12-05 01:45:14

问题


In office like libreOffice we have two type font in style, western font and CTL font.

all English font use western font and other things like persian and arabic font use CTL font.

in emacs 24 i want western text use this settings

 '(default ((t (:stipple nil :background "black" :foreground "chartreuse" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 96 :width normal :family monaco ))))

and all rtl and persian text use some thing diffrent.

how can this be happen?


回答1:


I found a simple way to use another font for a range of character, for example for Arabic sub set. use this in your init file :

(set-fontset-font
   "fontset-default"
   (cons (decode-char 'ucs #x0600) (decode-char 'ucs #x06ff)) ; arabic
   "DejaVu Sans Mono")

See Modifying Fontsets



来源:https://stackoverflow.com/questions/11012627/emacs-font-for-western-and-other-like-rtl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!