I use this method: http://www.adobe.com/devnet/flash/quickstart/embedding_fonts/#section1 to import fonts. However there are lots of characters i wont be using, which is inefficient, but i am yet to find a way to only embed/import certain charcters using Actionscript alone…anyone know how to do it?
for the sake of making my self an ***…
no there is no way of getting specific characters only
You can in flex, but not flash i don’t think.
No, you can’t do that if you import the font to the library, which is why importing fonts to the library is more or less impossible atm in Flash.
Dynamic text fields up up and away…
what do you mean its impossible sekasi? i thought that was what i was doing?
and are dynamic text fields better? if so, how?
You are importing the whole font, all characters. For people like me that speak a bunch of different languages and have those sets enabled, it means importing ‘verdana’ into my flash library adds 65.000 characters and like 70KB.
Not fun.
yeh ouch
but how do dynamic text fields help?
Well, if you place a dynamic text field on the stage and select the characters you want to embed, make it a movieclip and export it as a sprite class you can use it as a textfield. Linkage with something like TextSprite and identifier name field on the textfield.
new TextSprite();
addChild it
TextSprite.field.text = “Moo”;
This is how I do it when I can avoid embedding the whole font… sometimes it’s impossible but most of the time you can get around it like this.
sucks if you use flashdevelop of course!
Doesn’t suck more than having a Flash SWF file saying ‘hello world’ weigh in at 100kb.