title: Arabic text with custom fonts in iOS
body: <p>I'm working on an application that requires arabic text to be displayed, using custom arabic font. The problem is that i'm not having any luck in displaying the arabic text using <em>custom</em> arabic fonts. I've tried to display the text in UILabel, UITextField, UITextView, UIWebView, FontLabel (by Zynga), and using CoreText. </p>
  
  <p>You can find sample projects here:</p>
  
  <p><a href="http://dl.dropbox.com/u/4209396/ArabicFontTest.zip" rel="nofollow noreferrer">Sample application using UILabel, UITextField, UITextView and CoreText</a></p>
  
  <p><a href="http://dl.dropbox.com/u/4209396/ArabicWebView.zip" rel="nofollow noreferrer">Sample application using UIWebView (HTML)</a></p>
  
  <blockquote>
    <p>Sample application using UIWebView (HTML): You'll have to install the
    fonts in the sample project. You can then compare the results and see
    the problem by running the application in the simulator (or iPad), and
    opening Sample.html file in the browser (Safari).</p>
  </blockquote>
  
  <p>I've posted some details on Apple's developer forum but i've always found stackoverflow to be much more active then Apple's official developer forum. Here's a link to that post:</p>
  
  <p><a href="https://devforums.apple.com/message/532738" rel="nofollow noreferrer">Using custom arabic font in iOS</a></p>
  
  <p>What am i doing wrong?</p>
  
  <p>Note: The fonts are loaded into the system correctly, and i can successfully apply custom fonts to regular (english) text.</p>
  
  <p>p.s. There are a couple of posts on stackoverflow that talk about this subject but none have been of much help, so i'm posting a new question.</p>