I haven't tested this at runtime, but I did check the SWF contents using
a dump utility... have you tried supplying extra attributes directly
into the Embed statement?
[Embed(fontName='MyFontAlias', systemFont='Arial',
mimeType='application/x-font-truetype', unicodeRange='U+0E01-U+0E5B')]
Also note that if you use HTML text and want italic, bold and
bold-italic faces in addition to the plain/regular font face, you'd need
to embed those faces too with the same font family name (or font name
alias)... I did so using Embed with four dummy variables:
[Embed(fontName='MyFontAlias', systemFont='Arial',
mimeType='application/x-font-truetype', unicodeRange='U+0E01-U+0E5B')]
public var f1:String;
[Embed(fontName='MyFontAlias', fontWeight='Bold',
systemFont='Arial', mimeType='application/x-font-truetype',
unicodeRange='U+0E01-U+0E5B')]
public var f2:String;
[Embed(fontName='MyFontAlias', fontStyle='Italic',
systemFont='Arial', mimeType='application/x-font-truetype',
unicodeRange='U+0E01-U+0E5B')]
public var f3:String;
[Embed(fontName='MyFontAlias', fontWeight='Bold',
fontStyle='Italic', systemFont='Arial',
mimeType='application/x-font-truetype', unicodeRange='U+0E01-U+0E5B')]
public var f4:String;
Pete
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Klishin
Sent: Monday, January 02, 2006 12:48 PM
To: [email protected]
Subject: Re: [flexcoders] Embed font's glyphs in AS3 Project in Flex
Builder 2 alpha
Rob Rusher wrote:
> Did you try adding it in your style sheet like this:
> @font-face {
> src: url("assets/fonts/arial.ttf");
> fontFamily:futura;
> unicode-range: "glyphs";
> }
>
> Then in your flex-config.xml set the unicode-range:
> <language-range>
> <lang>glyphs</lang>
> <range>U+0E01-U+0E5B</range>
> </language-range>
Thanks, but it seems to be for MXML project (right me if I'm wrong). And
I need a solution for AS3 project in Flex 2 alpha...
--
Michael "Antares" Klishin,
Email: [EMAIL PROTECTED]
Web: www.novemberain.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/