So I want to use bold italic Baskerville. No matter what I do, it always shows up as regular in the device (without bold or italic). My code works fine on desktop.
I've tried using TextFormat class properties, which work for fonts like Georgia or Helvetica, but it doesn't for Baskerville.
textFormat.font = "Georgia";
textFormat.bold = true;
textFormat.italic = true;
I've also tried using the official iOS name of the font which is "Baskerville-BoldItalic" nothing.
I've listed all the fonts using this
var allFonts:Array = Font.enumerateFonts(true);
And it only lists the regular fonts, no bold or italic versions.
Any ideas on how to make Baskerville render in bold or/and italic?
Well it seems I'm out of luck. I'm using Flash CC, and there is a bug. I cannot import the class, because some SWC is missing.
And that throws the error:
1017: The definition of base class TLFTextField was not found.
I've already filled a bug report in bugbase...
No, I'm talking about all device fonts on iOS. I am using the text layout framework with device fonts. I am using FlashBuilder though, not Flash CC, not sure what SDK or swc libs you get with Flash CC.
Well the answer is simple. TLF text has been deprecated... and removed from Flash CC.
So I cannot use TLF text. Great.
Do you have any experience with embed fonts in iOS? I'm under the impression that embeding is not very good performance wise.
Well I don't know exactly how you are using fonts or text in your app, but TLF can still be used, it is part of apache-flex with newer builds
But I don't know anything about how/if it integrates the way you need in Flash CC.
I don't see a problem with the embedded fonts I use, but my apps are also Stage3D not Flex components, using TLF to render text lines at the text engine Sprite level, not with Flex components.
Could you please open a new bug report on this over at bugbase.adobe.com? Once the bug has been added would you mind posting back with the URL so that others affected can add their votes and comments?
Hello, here is the bug report https://bugbase.adobe.com/index.cfm?event=bug&id=3587210
BTW, I have tried embedding the font, and I got a new problem.... I've described my new problem in the flash forum and in StackOverflow.