Skip to main content
June 10, 2009
Question

embedding fonts

  • June 10, 2009
  • 1 reply
  • 595 views

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 has been closed for replies.

1 reply

Adobe Employee
June 12, 2009

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.