<div dir="ltr"><div class="post-text">
                <p>Writing simple text on an image using PIL is easy:</p><p>draw = ImageDraw.Draw(img)
    draw.text((10, y), text2, font=font, fill=forecolor )</p>

<p>however, when I try to write Hebrew punctuation marks (called
&quot;nikud&quot; or ניקוד), the characters does not overlap as it should. I
guess this question is relevant also to Arabic and other similar
languages.</p>

<p>On supporting environment, these two words take up the same
space/width (the below example depend on your system, hence the image):</p>

<p>סֶפֶר ספר</p>

<p>However when drawing the text with PIL i&#39;d get </p>

<p>ס ֶ פ ֶ ר</p>

<p>since the library probably doesn&#39;t obey kerning(?) rules.</p>

<p>Is that all possible without writing manually character positioning?</p>

<p></p>

<p>image url: <a href="http://tinypic.com/r/jglhc5/5" rel="nofollow">http://tinypic.com/r/jglhc5/5</a></p>

            </div></div>