Skip to main content
Inspiring
November 17, 2017
Answered

Embedded Fonts Issue Air 28

  • November 17, 2017
  • 3 replies
  • 2004 views

I'm using feathers SDK 3.3.1 (embedded font libs included).

All is well with AIR 27 - when I overlay Air 28 (AdobeAIRSDK) - the embedded fonts are no longer showing up.

This topic has been closed for replies.
Correct answer Shubhendu_Mishra

Thanks for sharing the information. We are investigating this issue.

Regards,

Adobe AIR Team


Hi Dews,

Please user latest AIR SDK 28 from http://labs.adobe.com/downloads/air.html and let us know if it works for you.

Regards,

Adobe AIR Team

3 replies

Adobe Employee
November 23, 2017

Hi,

Thanks for raising this issue but we are not able to reproduce this issue. Could you please share your Sample project so the we can investigate it.

Regards,

Adobe AIR Team

dewsAuthor
Inspiring
November 23, 2017

The sample project would consist of just a few lines of code..  Here are the steps to reproduce:

1. Use the Feathers installer to pull 3.3.1: https://feathersui.com/sdk/ - (be sure to include the embedded font libs)

2. Create a new Flex Project and point it to the Feathers SDK just downloaded.

3. Add an embedded font to your project - eg:

[Embed(source="assets/fonts/gothambold.ttf",  fontFamily="gothambold", mimeType="application/x-font", embedAsCFF="false")] public static const GothamBold :Class;

4. Use code:

var label :Label = new Label();

     label.textRendererFactory = function():ITextRenderer

     {

          var renderer :TextFieldTextRenderer = new TextFieldTextRenderer();

              renderer.embedFonts  = true;

          return renderer;

     }

     label.fontStyles = new starling.text.TextFormat( "gothambold", 15 );

     label.text = "Some test text";

this.addChild(label);

5. Run this on an iOS device and you'll see the text using the embedded font

6. Now overlay AIR 28 onto the SDK - run it again - and this time you won't see any text on the device.

Adobe Employee
November 24, 2017

Thanks for sharing the information. We are investigating this issue.

Regards,

Adobe AIR Team

Participating Frequently
November 21, 2017

more details: android - ok, desktop flash - ok, rolling the same project back to AIR 27 - ok. Starling's default verdana is ok too.

IOS + AIR28beta + any embeded font = fail

dewsAuthor
Inspiring
November 18, 2017

Android is working as expected - this issue is just affecting iOS on the device.

Note the code below that fails to render any text when the fontFamily is an embedded font.

var label :Label = new Label();

     label.textRendererFactory = function():ITextRenderer

     {

          var renderer :TextFieldTextRenderer = new TextFieldTextRenderer();

              renderer.embedFonts  = true;

          return renderer;

     }

     label.fontStyles = new starling.text.TextFormat( fontfamily, fontSize );