6 Replies Latest reply on Nov 5, 2012 12:08 AM by Ibarim

    Default font?

    Ibarim Level 1

      Hi,

      I'm working on a web application in flex. I don't embed fonts anywhere in my project. I'm using Fade effect on my tabNavigator. Problem is that Fade doesn't work for text which is in bold. It works only for normal weight. Now - why is that since I didn't embed anything? Wheter does Flex take my current font from? I searched through the net and found out that Fade shouldn't work at all on non-embeded fonts.

        • 1. Re: Default font?
          Flex harUI Adobe Employee

          Sounds like some font is embedded.  A –link-report can help you find out for sure.  Or debugging into EmbeddedFontRegistry

          1 person found this helpful
          • 2. Re: Default font?
            Ibarim Level 1

            Thanks harUI for help, I didn't know about -link-report option. I searched the .xml file and found some comic font I use somewhere in the app. But this may not be the case coz' Fade is applied to normal font and it works. I couldn't find in the .xml any other font name.

            To be sure I deleted part of the code with embeding this comic font and Fade still works. Don't know what to do next...:)

            • 3. Re: Default font?
              Ibarim Level 1

              I found this function which helps:

               

              private function listFonts():void {

                  var fontArray:Array = Font.enumerateFonts(false);

                     for(var i:int = 0; i < fontArray.length; i++) {

                        var thisFont:Font = fontArray[i];

                        if (thisFont.fontType == "embedded") {

                            trace("name: " + thisFont.fontName +"; typeface: " + thisFont.fontStyle + "; type: " + thisFont.fontType);

                        }

                     }

                  }

               

               

              It appears I got two fonts embeded: Arial black and Verdana. It's strange, becouse I don't see them anywhere in my code. And there is no info about them in the .xml file I mentioned above.

              1 person found this helpful
              • 4. Re: Default font?
                Ibarim Level 1

                Ok, I found it. I was using external .swc libraries created by a graphic designer and he embeded these two fonts into the .swc.

                Topic closed.

                • 5. Re: Default font?
                  Flex harUI Adobe Employee

                  In theory, the link-report should have told you what SWC the font was coming from.

                  • 6. Re: Default font?
                    Ibarim Level 1

                    I really like these situations, when something should work in theory, but it doesn't