Comments on: Font embedding problems in Flash CS3 IDE https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/ This is a blog from the Nivas.hr crew to the galaxy of unknown. Wed, 21 Jan 2009 08:01:50 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: Shiyaz https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-593435 Wed, 21 Jan 2009 08:01:50 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-593435 Hi,

Might be useful to some one… just make sure you have not applied the font that is required for embedding, in the FLA.

For instance, if you need to embed a font (say Hobo), use any method that suites you best – preferably CSS, but ensure that Hobo is not applied to any of your text boxes either on stage or on the library. Use some font that you are sure will never be used in the project for *all* text boxes (say Garamond). Then, apply Hobo through script to the text boxes.

If in case you are not able to see an embedded font, it can mean only one thing – that there is at least one instance of a text box some where within the FLA, which has that particular font applied to it. Please note that it doesn’t matter if the text box is Static, Dynamic or Input.

~ Shiyaz

]]>
By: Dinesh https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-497686 Sun, 03 Aug 2008 19:49:25 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-497686 Hi,
I still cant make my code work…

var font:Font = new f1(); //from library
var format:TextFormat = new TextFormat();
format.font = new f1().fontName;
format.color = 0x000000;
format.size = 12;
format.letterSpacing = 0.8;

//var tf:TextField = new TextField();
k1.embedFonts = true;
k1.antiAliasType = AntiAliasType.ADVANCED;
k1.autoSize = TextFieldAutoSize.LEFT;
k1.selectable = false;
k1.defaultTextFormat = format;
k1.text = “Collections”;

this is my code… k1 is a name of a dynamic text field that i have created in screen.. i hav created a mask for th layer that contains this text field..so its not visible, thats the reason i want to embed the font. but its not at all working.. pls tell me what am missing..

]]>
By: Stepan Kabele https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-299809 Wed, 12 Mar 2008 01:33:57 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-299809 Thanks a lot! As others I spend hours and hours reading thousands faq’s and howto’s -and this one finally saved my a…source code.

]]>
By: Clemens https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-209614 Wed, 16 Jan 2008 11:34:20 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-209614 Fantastic! For me too it ended a headache.

Incredible that Adobe didn’t document this clearly.

]]>
By: randygland https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-180734 Fri, 14 Dec 2007 16:53:15 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-180734 call me thick, but i must still be missing something,, do you actually create a class called myEmbeddedFont()? and if so, what do you put in this class? I’ve tried your way, and it throws an error like:

1180: Call to a possibly undefined method myEmbeddedFont.

]]>
By: Eriq https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-162909 Thu, 22 Nov 2007 10:05:41 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-162909 Man, it’s 2:03 and Flash failing to render my font is not something I need. Thanks a bunch.

]]>
By: maddec https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-140971 Mon, 29 Oct 2007 19:52:05 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-140971 Hi Og2t thank you for your trick!

I started a project to gather every Flash/Flex issues and questions related to fonts embedding. SAEF project (Share About Embedding Flash/Flex).
http://analogdesign.ch/blog/index.php/archive/flash-flex-font-embedding-information-sharing-project-saef-project/
Don’t hesitate to make suggestions and/or modifications.

]]>
By: seven https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-127283 Sat, 20 Oct 2007 09:57:38 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-127283 Cool trick Og2t, thanks!

Btw, I really love flightboard effect on your site! We had to do something similar for one online campaign – https://www.nivas.hr/pub/s&s-tmobil-flex-728/

]]>
By: Og2t https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-126393 Fri, 19 Oct 2007 12:50:06 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-126393 You can use your dynamic classes (https://www.nivas.hr/blog/2007/10/04/dynamic-class-names-are-neat/) for fonts as well:

var embeddedFontClass:Class = getDefinitionByName(embededFontName) as Class;
Font.registerFont(embeddedFontClass);
var font = new embeddedFontClass().fontName;

var fmt:TextFormat = new TextFormat();
fmt.font = font;

;-)

]]>
By: Ain Tohvri https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-117253 Mon, 08 Oct 2007 17:05:25 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-117253 Yes, this is unfortunate.

I’ve now concluded my research on this issue as well. Please find it here

]]>
By: seven https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-103216 Mon, 24 Sep 2007 18:42:11 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-103216 Ain, I wouldn’t go so far and say the as3 compiler is terrible. The sad fact remains, fonts are handled so wrong. :(

If somebody knows how to embed font to TextArea in cs3, give me a buzz…!

]]>
By: Ain Tohvri https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-99031 Wed, 19 Sep 2007 10:38:26 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-99031 For the existing framework done in AS2 it seems quite an overhead to produce a textfield to replace a library font esp under the circumstances in which the quality of the embedded chars is not reasonable. In fact, I failed to compile a field with embedded chars in a way that all the chars would display properly.

As for the CS2 products Adobe’s QA has remained terrible and despite the fact that the font embedding has always been troublesome, Flash CS3 compiler is undoubtedly the worst compiler I’ve seen for Flash and I’ve seen them since Flash 4.

]]>
By: seven https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-98898 Wed, 19 Sep 2007 00:28:07 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-98898 There is few workaround, eg. you can create dummy textfield on the stage with letters you need, and then create another from the code and use those letters.

I haven’t tried embedding/using our chars in Flex, but it can’t get much worse than Flash 9 IDE.

]]>
By: Ain Tohvri https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-97336 Mon, 17 Sep 2007 02:52:16 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-97336 There is no multibyte support as unicode chars like фывафвыа or šžšžšž. I can’t quite get how did you manage to get Croatian chars to appear.

This is total madness. The whole thing is utterly broken and not usable. We can imagine how many frameworks it has broken for the Flash developers…

]]>
By: seven https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-83611 Tue, 31 Jul 2007 11:10:24 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-83611 I have check it out css stylesheets. Didn’t have time to play with it. Actually, I tried to avoid css in cs3 until now. :)

]]>
By: Philly https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-83432 Mon, 30 Jul 2007 07:55:42 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-83432 Good stuff! But hey, what do I do if I want to use a css stylesheet instead of the TextFormat class?

]]>
By: Rigard Kruger https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-73460 Wed, 20 Jun 2007 07:27:59 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-73460 Wow, I have always found text to be a bit of an issue in flash – and even more so in CS3. Your post has helped immensely. Thanks!

]]>
By: Jeff https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-72402 Sun, 17 Jun 2007 17:58:12 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-72402 Thank you, your tip was a great help. When you embed a font in Flex, I take it it embeds the entire font, not just the latin chars? Is that true? As far as I know, Flash IDE only embeds latins + numbers/ some symbols, unless embed manually using authoring environment(hassle). Were you able to get Croatians in older vers. of Flash?

]]>
By: Alberto https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-71189 Thu, 14 Jun 2007 14:28:55 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-71189 Seven, your hack is great. Since some days I was working about it but no way, until now.

]]>
By: Laila https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/comment-page-1/#comment-71180 Thu, 14 Jun 2007 13:44:35 +0000 https://www.nivas.hr/blog/2007/06/06/font-embedding-problems-in-flash-cs3-ide/#comment-71180 Just out of curiosity.. Have you tried to make this work with labels? I had to give up in the end, and convert my labels to TextFields, which worked fine anyway. Annoying though. ;-)

]]>