emacs字体为西方和其他喜欢rtl [英] emacs font for western and Other like rtl

查看:188
本文介绍了emacs字体为西方和其他喜欢rtl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



所有英文字体使用西方字体和其他东西,如波斯语和阿拉伯语字体使用CTL字体。





在emacs 24我想西方文本使用这个设置

 '(默认((t(:stipple nil:backgroundblack:foregroundchartreuse:reverse-video nil:box nil:strike-through nil:overline nil:underline nil:slant normal:weight normal:height 96:width normal:family摩纳哥))))

所有rtl和波斯文都使用一些不同的东西。



如何才能发生?

解决方案

我发现使用另一种字体的简单方法对于一系列的字符,例如阿拉伯语子集。
在你的init文件中使用这个:

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

请参阅修改Fontsets


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?

解决方案

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

这篇关于emacs字体为西方和其他喜欢rtl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆