freetype icon indicating copy to clipboard operation
freetype copied to clipboard

Support for Arabic and Persian fonts

Open aliiizzz opened this issue 5 years ago • 1 comments

Hi. when I use Persian fonts, result characters are separated on the image. Screen Shot 2020-03-20 at 8 29 26 PM any suggestion how to fix that?

aliiizzz avatar Mar 20 '20 17:03 aliiizzz

Hi, you should apply presentation form before drawing text, two packages does this 1st and 2nd there is also persian fork for each of them: garabic goarabic

you can use goarabic like this:

if rtl {
	text = goarabic.FixArabic(text)
}

for garabic:

if rtl {
    text := garabic.Shape(text)
}

hmmftg avatar Sep 09 '23 09:09 hmmftg