4 Replies Latest reply on Aug 8, 2009 9:10 AM by kglad

    embedded font styles procedure

    jiggy1965 Level 1

      I've imported two styles of the Trebuchet MS font into the library. One without selecting the 'bold' checkbox in the Library Panel upon importing and the second with the 'bold' checkbox selected.

      If I look in the font list of the property panel I now see the two embedded fonts (with asterisks behind their names):
      Trebuchet MS Regular*
      Trebuchet MS Bold*

      The first textfield uses Trebuchet MS Regular* and off course shows the text in plain style

      The second uses Trebuchet MS Bold* and I would expect the text to turn immediately bold, but it is still in regular style when I select Trebuchet MS Bold*. In both cases (Trebuchet MS Regular* and Trebuchet MS Bold*) I would have to select 'B' in the properties panel to make the text bold. Which in the second case seems a bit too much to me. Why still have to click 'B' when I already have Trebuchet MS Bold* selected?

      Too make it more weird: I could also import Trebuchet MS with Italic selected, choose Trebuchet MS Italic* (which would make the text 'regular' at first) and click 'B' to also make the text bold.

      Can someone explain why Flash works this way with imported fonts?

      (I know I should/could use TextFormat, but I'm curious about this other approach and why Flash works this unlogical way with embedded fonts)

        • 1. Re: embedded font styles procedure
          kglad Adobe Community Professional & MVP

          you must embed your textfield's font.

           

          if you're going to embed a font in the authoring environment there's no reason to import that font to the library.  just select your font from the font list and select the characters to embed.

           

          if you're going to embed a font using actionscript, then you need to import the font to your library, in addition, to several other steps.

          1 person found this helpful
          • 2. Re: embedded font styles procedure
            jiggy1965 Level 1

            Any ideas?

             


            The same thing will happen if you import all four styles or Arial (or any other) font.

             

            So, let's say I've imported all four styles of Arial (regular, bold, italic, bold/italic) and give all of them appropriate names, which are added in the Font List with an asterisk behind their names:

             

            Arial_Regular*
            Arial_Bold*
            Arial_Italic*
            Arial_Bold_Italic*

             

            Now, this is what I expect to happen:

             

            Arial_Regular* > text dynamic textfield turns Arial Regular
            Arial_Bold* > text dynamic textfield turns Arial Bold
            Arial_Italic* > text dynamic textfield turns Arial Italic
            Arial_Bold_Italic* > text dynamic textfield turns Arial Bold/Italic

             

            Instead I get this:

             

            Arial_Regular* > text dynamic textfield turns Arial Regular
            Arial_Bold* > text dynamic textfield turns Arial Regular
            Arial_Italic* > text dynamic textfield turns Arial Regular
            Arial_Bold_Italic* > text dynamic textfield turns Arial Regular

             

            I can make the text bold, italic or both, but then I still have to click the B and I button in the Property Panel. Which give me these options:

             

            Arial_Regular* > click nothing >text dynamic textfield turns Arial Regular
            Arial_Regular* > click B > text dynamic textfield turns Arial Bold
            Arial_Regular* > click I >text dynamic textfield turns Arial Italic
            Arial_Regular* > click B and I > text dynamic textfield turns Arial Bold/Italic

             

            Arial_Bold* > click nothing >text dynamic textfield turns Arial Regular
            Arial_Bold* > click B > text dynamic textfield turns Arial Bold
            Arial_Bold* > click I >text dynamic textfield turns Arial Italic
            Arial_Bold* > click B and I > text dynamic textfield turns Arial Bold/Italic

             

            Arial_Italic* > click nothing >text dynamic textfield turns Arial Regular
            Arial_Italic* > click B > text dynamic textfield turns Arial Bold
            Arial_Italic* > click I >text dynamic textfield turns Arial Italic
            Arial_Italic* > click B and I > text dynamic textfield turns Arial Bold/Italic

             

            Arial_Bold_Italic* > click nothing >text dynamic textfield turns Arial Regular
            Arial_Bold_Italic* > click B > text dynamic textfield turns Arial Bold
            Arial_Bold_Italic* > click I >text dynamic textfield turns Arial Italic
            Arial_Bold_Italic* > click B and I > text dynamic textfield turns Arial Bold/Italic

             

            Which seems a bit illogical to me? To choose Arial_Italic* and click B to make the text bold e.g.?

             

            This would make much more sense to me:

             

            Arial_Regular* > text dynamic textfield turns Arial Regular
            Arial_Bold* > text dynamic textfield turns Arial Bold
            Arial_Italic* > text dynamic textfield turns Arial Italic
            Arial_Bold_Italic* > text dynamic textfield turns Arial Bold/Italic

             

            Or when Flash imports all four styles of the same font to have Flash add one general embedded font into the Font List and then click B or I to change styles:
            Code:

             

            Arial* > click nothing > text dynamic textfield turns Arial Regular
            Arial* > click B > text dynamic textfield turns Arial Bold
            Arial* > click I > text dynamic textfield turns Arial Italic
            Arial* > click B and I > text dynamic textfield turns Arial Bold/Italic

             

            Is there a logical reason why Flash acts this way with embedding all styles of the same font? Or is this just a Flash bug?

             

            If someone could give me a reason why Flash acts this way with fonts that makes sense, I'd love to hear it

            • 3. Re: embedded font styles procedure
              kglad Adobe Community Professional & MVP

              again, if you're going to embed a font in the authoring environment there's no reason to import that font to the library.  just select your font from the font list and select the characters to embed.

               

              in particular, do NOT select a starred font.  just select the font you want, tick the characteristics (bold, italic) you want and proceed.

              • 4. Re: embedded font styles procedure
                jiggy1965 Level 1

                I know. I've imported the fonts because in my case I'm using them in combination with CSS. And I could use TextFormat or the 'Embed' button in the Properties Panel etc.

                 

                But I was very curious about this approach and why Flash works like this with embedded fonts when it comes to 'starred fonts'.And why Flash offers four starred fonts for four imported styles of the same font, when all four starred fonts do the same thing: start in 'regular' and turn into bold, italic or both when clicking the B and I buttons.

                 

                So if anyone can enlighten me?