0 Replies Latest reply on Jun 8, 2011 3:56 PM by Flex Rock

    Unable to load local system font in Flashbuilder4

    Flex Rock Level 1

      Hi,

             I was not able to load system font in Flex4.

       

      I have done like this.

      In css

                @font-face {
          src: local("Arial");
          fontFamily: "Arial";
      }
      @font-face {
          src: local("Arial");
          fontFamily: "Arial";
          fontWeight: bold;
      }

       

      I have a config file in my local ie(src) to point the font-folder.

       

      <?xml version="1.0" encoding="utf-8"?>
      <flex-config>
          <compiler>
              <fonts>
                  <local-font-paths>
                      <path-element>C:/Temp/fonts/</path-element>
                      <!--<path-element>/System/Library/Fonts/</path-element>-->
                  </local-font-paths>
              </fonts>
          </compiler>
      </flex-config>

       

      Note: Transition from 3.2 to 4.1

       

      But the font was not embedding. Whats wrong in it. Can anyone help me.

       

       

      Regards,

      Jayagopal.