Accorpa / Arabic-Converter-From-and-To-Arabic-Presentation-Forms-B

Objective C Class to convert from and to Arabic Presentation Forms B
45 stars 9 forks source link

Special Characters like "tanween" or "damma" produce FT_Load_Glyph failed: error 6. #1

Open MANassar opened 12 years ago

MANassar commented 12 years ago

Trying to convert text like مرحباُ in a UITextView, I can see the string correctly changed in the debug console. But in the text view, only the tanween is visible and the rest of the word isnt. I've tried several fonts to no avail! Could u please help?! Or direct me on how to fix this problem myself?!

Accorpa commented 12 years ago

Salam,

I have tried this word with a font "me_quran" and it is rendered ok, it may be the font problem, try this font

http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CEsQFjAA&url=http%3A%2F%2Ftanzil.net%2Fres%2Ffont%2Forg%2Fme_quran.ttf&ei=lQIHUKjPLcvKtAakpdCJBw&usg=AFQjCNFo0a6kGwaAUAGgeaoVuTEM0Tn-Ow&sig2=IO7yW6nKrU9uBqPZ9qRvDw

Also here is my code: UITextView* lala = (UITextView)[self.view viewWithTag:100]; lala.text = [[ArabicConverter alloc] convertArabic:@"مرحباُ"]; UIFont font = [UIFont fontWithName:@"me_quran" size:23]; NSLog(@"font: %@",font); [lala setFont:font];

Sorry for Late Reply :)

emadhegab commented 11 years ago

it happen to me on the fonts Adobe Arabic and many other fonts and it's not only for (tanween) it's for senteces that have no special characters like this (لا هاتف يزهم ولا زاحد جاب) which have nothing special but it gives me random chinees character

amhofny commented 11 years ago

it depends on the font it self, can u send me an example font

emadhegab commented 11 years ago

yes here is a link http://www.2shared.com/file/uUaGh5Fr/AdobeArabic-Regular.html

tillawy commented 11 years ago

You can re produce problem with two combinations in same string, like: لا لا . I fixed it, committed the code, made the pull request.

emadhegab commented 11 years ago

where did you committed it? last update on svn was 8 moths ago