Font emacs for western and others like rtl

In an office like libreOffice, we have type 2 font, western font and CTL font.

all English fonts use Western fonts and other things like Persian and Arabic fonts use CTL fonts.

libre office example

in emacs 24 I want western text to use these 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 something else.

how can this happen?

+5
source share
1 answer

I found an easy way to use a different font for a range of characters, for example, for an Arabic subset. use this in the initialization file:

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

See Change Fonts

+5
source

All Articles