I am trying to make an iphone application that displays mainly Arabic language content. I want to use a custom Arabic font for displaying that content, not the iPhone defaul
THIS ANSWER IS FOR BELOW IOS 7.
I have also gone through this situation u can create your own hash map method for the replacement of 0600-06ff char with ur custom font but for that u need to check if your glyph in the TTF is mapped against 0600-06FF than u need to modify ur glyph mapped unicode except from 0600-06ff
for example if i made a TTF and mapped 'و' with unicode 0627 and when i try to see the effect of typed unicode 0627 char i.e(when i type 'ا' it must show 'و') it will not apply my custom image against it because ios6 will not allow u to change the glyph on the particular range . but if i would have mapped this custom char with Fxxx series or other than of 0600-06ff it will easily allow me to made custom change
Arabic(0600—06FF, 255 characters) u cannot play on this range or change the image of these glyph image with your custom image so mapped your glyph against the below arabic unicode Arabic Supplement (0750—077F, 48 characters) Arabic Extended-A (08A0—08FF, 39 characters) Arabic Presentation Forms-A (FB50—FDFF, 608 characters) Arabic Presentation Forms-B (FE70—FEFF, 140 characters)
here is the link for the similar type of thing done using custom arabic class and i also took help from it arabic custom font class