Skip to main content
Participant
October 23, 2009
Question

how to use "fontWeight" in Text Layout Framework ?

  • October 23, 2009
  • 1 reply
  • 669 views

  [Embed(source = 'AdobeKaitiStd-Regular.otf',fontName = 'AdobeKaitiStd-Regular',fontWeight="bold", unicodeRange = "U+4E00-U+9FA5", cff = "true")]
  public  var AdobeKaitiStd:Class;

  Error: unable to build font 'AdobeKaitiStd-Regular'

if fontWeight="normal" is able to embed

why the font can't embed in to the swf ? 

This topic has been closed for replies.

1 reply

Adobe Employee
October 23, 2009

I believe the font itself has to match.  You'll need a bold font.

Note that in more recent flex sdks the cff="true" is replaced with embedAsCFF="true".

Hope that helps,

Richard