Skip to main content
Participant
Oct 23, 2009 9:21 AM UTC
Question

how to use "fontWeight" in Text Layout Framework ?

  [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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
Oct 23, 2009 11:18 PM UTC

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

Translate