Writing simple text on an image using PIL is easy:

draw = ImageDraw.Draw(img) draw.text((10, y), text2, font=font,
fill=forecolor )

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

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

סֶפֶר ספר

However when drawing the text with PIL i'd get

ס ֶ פ ֶ ר

since the library probably doesn't obey kerning(?) rules.

Is that all possible without writing manually character positioning?

image url: http://tinypic.com/r/jglhc5/5

<<attachment: nikud.png>>

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to