Christian Moe <[email protected]> writes:

> Khalid Rafi <[email protected]> writes:
>
>> Ihor Radchenko <[email protected]> writes:
>>
>>> Khalid Rafi <[email protected]> writes:
>
>> I have attached a test file with this mail.
>>
>> [2. Arabic Table --- text/x-org; test.org]...
>
> I've had issues with this in the past, but not lately. Might it be a
> matter of font choice and Emacs using fallbacks for Arabic when the
> default fonts that do not support it? Khalid's attached table aligns
> perfectly for me as long as I use a default font that supports Arabic,
> e.g. DejaVu Sans Mono Book or simply Courier New. It does look messed-up
> in FreeMono or Linux Libertine.
>
> Regards,
> Christian

Here is my font configuration:

#+begin_src ELisp
 (defun khalid/set-font-faces ()
  (message "Setting faces!")

  (set-fontset-font t 'unicode "Symbols Nerd Font Mono" nil 'prepend)

  (when (eq system-type 'gnu/linux)

    (set-fontset-font t 'bengali (font-spec :family "Kalpurush" :size 20))

    (set-fontset-font t 'arabic (font-spec :family "Cairo" :size 18))

    (message "Fontsets successfully set!")
    )) 
#+end_src

I face this issue on both Android and Linux. On Android, the Arabic font 
defaults to Noto Naskh Arabic.




-- 
Khalid Rafi
Sent with Emacs

Reply via email to