Skip to main content
Jun 10, 2009 7:59 AM UTC
Question

embedding fonts

I'm currently working on an application which loads some fonts at runtime.

One of the fonts I named _arial, normally you would set the textfield to embedfonts=true.

When you than insert some htmlText, say <font face="_arial" size="14">Hello world</font>, the text is displayed in _arial size 14.

Is there a way to achieve the same with the Text Layout Framework?

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
Jun 12, 2009 5:01 PM UTC

Yes. You need to set the fontLookup in the ITextLayoutFormat to EMBEDDED_CFF. If the font has been embedded (e.g., by the Flex compiler) you should see the text come out using the embedded font.

Translate