Tan*_*ğlu 1 iphone fonts xamarin.ios ios
我正在使用MonoTouch开发一个使用自定义阿拉伯字体的iPhone应用程序(来自http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ArabicFonts的 Scheherazade ).我在应用程序中加载字体时没有问题.我也看到它在我使用拉丁文本时使用,但是当我想显示阿拉伯文本时,它使用默认的系统字体来显示文本.
有没有人有自定义阿拉伯字体和MonoTouch/iPhone开发的经验,或者知道为什么会这样?
先感谢您.
给予最亲切的问候,
Taner Gedikoglu
这些课程将完成这项工作:
https://github.com/Accorpa/Arabic-Converter-From-and-To-Arabic-Presentation-Forms-B
下载它们,我很确定能回答你的问题,因为我之前遇到过完全相同的问题!
代码示例:
ArabicConverter *converter = [[ArabicConverter alloc] init];
NSString* convertedString = [converter convertArabic:@"??? ?????"];
infoText.font = [UIFont fontWithName:@"YOUARABICFONT" size:16];
infoText.text = convertedString;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2524 次 |
| 最近记录: |