How can I set the font name and size for Arabic letters in both emacs and xterm? Thanks
The following will set the default fonts in your GUI Emacs and XTerm to "DejaVu Sans Mono" which is fairly common and has nice looking Latin and Arabic glyphs.
For your XTerm, and using
uxterm a wrapper around
xterm, add the following to the end of your
UXTerm*faceName: xft:DejaVu Sans Mono:size=10
xrdb -merge ~/.Xresources. This will take the changes you just made to your
~/.Xresources file and apply them to your current session. Subsequent
uxterms you start will use these changes.
For Emacs edit your
~/.emacs.d/init.el and add:
(set-default-font "DejaVu Sans Mono:size=10")
Restart Emacs for this to take effect.
Obviously replace my example font with something you like. My example considers using only one font, but both font systems have a “fall through” system where you can use different fonts for different languages. Read up on XTerm’s and Emacs docs for specifics about that.