Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Arabic and Persian fonts #74

Open
aliiizzz opened this issue Mar 20, 2020 · 1 comment
Open

Support for Arabic and Persian fonts #74

aliiizzz opened this issue Mar 20, 2020 · 1 comment

Comments

@aliiizzz
Copy link

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?

@hmmftg
Copy link

hmmftg commented Sep 9, 2023

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)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants