Skip to main content
June 1, 2009
Question

cff and font inclusion.

  • June 1, 2009
  • 1 reply
  • 1536 views

h,kay..

tell me how stupid I am. Apparently the baseclass "FontAsset" is missing - what am I missing?

code:

package mea.fonts {

    import flash.text.Font;

    public class fontCompiler extends Font{

        [Embed(source="/mea/fonts/ttfSource/Laine.TTF", fontFamily="Laine", cff="true")]

        private const Laine:Class;

        public function fontCompiler(){

        }

    }

}

compiler:

----------

Adobe Flex Compiler SHell (fcsh)

Version 4.0.0 build 7410

Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.

(fcsh) fcsh: Assigned 1 as the compile target id

Loading configuration file D:\eclipse\plugins\com.powerflasher.fdt.shippedflex_3.2.0.3958_0001\flex\frameworks\flex-config.xml

mea\fonts\fontCompiler_Laine.as(10): col: 49 Error: The definition of base class FontAsset was not found.            

This topic has been closed for replies.

1 reply

June 1, 2009

apparently flex4.swc does not have mx.core.FontAsset. Is this normal?

June 1, 2009

http://www.robmccardle.com/

^ great blog on this topic.

[Resolution]

Turns out the packages have been split up at least as early as build 7410 (May/2009) and I was including flex4.swc where the mx classes no longer reside.

Ensure you include libraries (/flex4GumboLocation/frameworks/lib/flex4.swc [optional])

AND (/flex4GumboLocation/frameworks/lib/flex.swc) <--- where the mx classes reside.

I don't pretend at all to be an expert with flex/Gumbo so feel free to correct or elaborate.