Thanks for your prompt reply. I'm having a little trouble
embedding the swf via Gumbo and I have some other questions.
I've not really explored Flex as much as I would like, but
I've bought a copy this morning and installed Gumbo and that all
seems to be working. I'm trying to use the world maps example as my
template to import the swf and making this code work.
I've created this little class in my flex project, directly
based on WorldClassFontPack.as
package
{
import flash.display.Sprite;
public class FontPack extends Sprite
{
[Embed(source='/Users/kenmacleod/Library/Fonts/GE SS Unique
Light_Arabic font.otf', cff='true', fontName='_ArabicFont',
unicodeRange='U+0600-U+06FF')]
public static var _ArabicFont:Class;
public function FontPack():void {}
}
}
In my flash I have the following that is in the function that
gets called on the loader complete liistener...
var FontLibrary:Class =
e.target.applicationDomain.getDefinition("FontPack") as Class;
Font.registerFont(FontLibrary._ArabicFont);
I have 2 questions...
- The unicode range I've employed is the entire range of
unicode values that are assigned to arabic text (these values are
from
http://unicode.org/charts/PDF/U0600.pdf).
Can I do this to capture all the text, or do I need to actually
embed the specific ranges particular to the font, if so how do I
extract those? I can't read arabic so at this stage I just want
everything the font has.
- What do I need to put in my mxml file to reference the
class above that I've place in my src folder. Do I just put import
FontPack between a Script tags. Sorry, I realise this is super
basic stuff, but its just not working.
Thanks.