I need to make Arabic text follow some curved path using TikZ. This is the sample code I am using:






\newcommand{\tekst}{\fontsize{20pt}{20}\selectfont\textarabic{\arb{إلى حبيبي لوكاس"!}}}

\draw[postaction={decorate,decoration={text along path,text align=center,
text={|\fontsize{20pt}{20}\selectfont\arb|إلى حبيبي لوكاس"!},
raise=-1pt}}](58mm, -64mm)to[bend left=35] (152mm, -36mm){};     

Some latin text and inline arabic:

\textarabic{\arb\fontsize{20pt}{20}\selectfont{إلى حبيبي لوكاس"!}}


When I compile it, there are two problems:

  1. The characters are distorted, like it is not the same font (take a close look at the character ل)
  2. I cannot force RTL to the text itself. It just ignores me.

Here are the sample PDF i am getting and the font I'm trying to use: https://www.dropbox.com/sh/qx3yzfaavf8io9j/AACEdkMKQFaPr-oNj8BOQ2iXa?dl=0

Can someone shed some light on these issues I am experiencing?

  • Worst case you can put each letter into a separate \hbox. – John Kormylo Oct 11 '17 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.