PDA

View Full Version : anyone know Flash CS3 embed font's Glyphs Range!! with font class(no TextField )



redyyu
February 17th, 2008, 08:17 PM
I have add some font by Font class in the library
(TextFeild.embedFonts=true)

but the font's glyphs looks not enough.

when i use text String " ü ä ö ß π à â ç è é ê ë î ï ô ù û œ "
only the "π" and "œ" is can be visible.
Font.hasGlyphs also return false;

if i only create a TextField, and Click the Embed button selection glyphs range.
the text will be fine.

but i won't use TextField by drag to the stage

i heard in flex:
@font-face {
src:local("Arial");
fontFamily: myFont;
flashType: true;
unicodeRange:
U+0041-U+005A, /* [A..Z] */
U+0061-U+007A, /* a-z */
U+0030-U+0039, /* [0..9] */
U+002E-U+002E; /* [.] */
}
so what can i do in Flash CS 3?

thanks a lot
i really tried working on this.maybe i just need go back use the .....TextField.

Saddu
February 18th, 2008, 04:44 AM
Hi,

I had this problem, me too really tried hard to achieve that, but nothing helped me, when you set embed fonts to true through action script its not embedding all the glyphs, only way is drag and drop textbox and set the embed fonts in the properties panel.

Thanks,
Saddu.


I have add some font by Font class in the library
(TextFeild.embedFonts=true)

but the font's glyphs looks not enough.

when i use text String " ü ä ö ß π à â ç è é ê ë î ï ô ù û œ "
only the "π" and "œ" is can be visible.
Font.hasGlyphs also return false;

if i only create a TextField, and Click the Embed button selection glyphs range.
the text will be fine.

but i won't use TextField by drag to the stage

i heard in flex:
@font-face {
src:local("Arial");
fontFamily: myFont;
flashType: true;
unicodeRange:
U+0041-U+005A, /* [A..Z] */
U+0061-U+007A, /* a-z */
U+0030-U+0039, /* [0..9] */
U+002E-U+002E; /* [.] */
}
so what can i do in Flash CS 3?

thanks a lot
i really tried working on this.maybe i just need go back use the .....TextField.

redyyu
February 23rd, 2008, 11:04 AM
so which mean is that's the only way? how come adobe did so stupid things like that? the TextField is worked but Font class is not working??