title: ffmpeg drawtext support for Hindi fonts
body: <p>We are trying to use ffmpeg drawtext to support hindi fonts. But the ordering of the data is not correct. 
  The unicode for Hindi text is passed like this </p>
  
  <pre><code>1. पिता माता िस्रफ
  </code></pre>
  
  <p>But output renders as</p>
  
  <p><a href="https://i.stack.imgur.com/if8Ys.png" rel="nofollow noreferrer">Output of code</a></p>
  
  <p>Have used the following code for generating the output</p>
  
  <pre><code>ffmpeg  -framerate 30 -t 10 -i /opt/test.png drawtext=text_shaping=1:fontcolor=white:fontsize=60:fontfile=/usr/share/xx.ttf:text='1. पिता माता िस्रफ':y='max(550,700-t*200)':x=40,format=yuv420p[v] /usr/share/nginx/html/hello_v.mp4
  </code></pre>
  
  <p>Had done <code>harfbuzz support</code> and <code>--libfribidi</code> is also enabled.</p>
  
  <p>The problem is the text gets drawn from left to right. Also found there is a <code>use_kerning</code> flag in drawtext, will that help, if yes how to use it.</p>