Yeah, I finally got it working about 3 hours ago :) Thanks
On Thu, Apr 10, 2008 at 9:25 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > His example looks ok to me. You can try typing _Arial as Font instead > of Class. Otherwise, try waiting a another frame before calling > registerfont. > > > ------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Mario Falomir > *Sent:* Thursday, April 10, 2008 2:22 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Shared Fonts Hell > > > > Hi, Im about to commit suicide here :) and I have no hair left, Im > struggling BIG TIME with shared fonts in Flex ( I dont actually get'em ), > what I want to do is to have a font catalog in my app. so the user selects > an embedded font and use it. I could embed the fonts i wish using the meta > tag but obviously the file size increases as hell, the other approach I > used was runtime css, to have a CSS swf fo each font I wish to embed, and > depending on the font selected load the appropiate CSS, but I did not find > it very attractive, I found this approach, but I can get it working, when I > try to register the font using Font.registerFont it gives me an error, > telling me The value specified for argument font is invalid. at > flash.text::Font$/registerFont(): > > > http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore > > Can anyone point in the right direction, or tell me if there is a decent > way to dynamically load embedded fonts in Flex , or what am I doing wrong ? > I found Scotts' example very nice but I cant get it working... > > Appreciate any kind of help. > > Thanks a lot! > > >