• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Custom fonts on iOS app using AIR 3.9

Guest
Dec 11, 2013 Dec 11, 2013

Copy link to clipboard

Copied

we are building an app for iOS using AIR 3.9 where we have to display the text using different fonts which are not available on iOS 5 or later. To fix this issue we have found a solution using XCode via ANE where by using "CTFontManagerRegisterGraphicsFont" class we can download the font from a location and register it on the device(working on mac using simulator ).  But when we are packaging the ANE with AIR 3.9, it gives us the error which says that:-

Error occurred while packaging the application:

Undefined symbols for architecture armv7:

  "_CTFontManagerRegisterGraphicsFont", referenced from:

      ___setPath_block_invoke in libnet.example.download.a(IOSFontLib.o)

ld: symbol(s) not found for architecture armv7

Compilation failed while executing : ld64

can anyone suggest where we are going wrong!

thanks in advance

TOPICS
Development

Views

826

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 11, 2013 Dec 11, 2013

Copy link to clipboard

Copied

According to this post, using CTFontManagerRegisterGraphicsFont should still work on iOS too:

http://stackoverflow.com/questions/4942449/ios-programmatically-add-custom-font-during-runtime

since it requires the CoreText framework have you included the following option in your <linkerOptions> set in platform.xml?

<option>-framework CoreText</option>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 12, 2013 Dec 12, 2013

Copy link to clipboard

Copied

LATEST

It works! you made my day jeffrey ! thanks a ton

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines