1 Reply Latest reply on Mar 31, 2008 3:16 PM by TessandraFae

    Embedding Font

    vkr
      hi
      here is my code - i wonder what is the trouble!
      ---------------
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      xmlns:mx=" http://www.adobe.com/2006/mxml"
      layout="horizontal"
      horizontalAlign="center"
      verticalAlign="center"
      viewSourceURL="src/EmbeddingFonts/index.html"
      backgroundAlpha="0" backgroundColor="white"
      >
      <mx:Style>
      @font-face
      {
      font-family: AngsanaUPC;
      src=url("assets/angsau.ttf");
      unicode-range:
      U+0020-U+0040, /* Punctuation, Numbers */

      U+0041-U+005A, /* Upper-Case A-Z */
      U+005B-U+0060, /* Punctuation and Symbols */
      U+0061-U+007A, /* Lower-Case a-z */
      U+007B-U+007E; /* Punctuation and Symbols */
      }
      .myTxt
      {
      font-family: AngsanaUPC; font-size: 24pt;
      }
      </mx:Style>
      <mx:Text styleName="myTxt" text="ฟหกดฟหกด ฟส่ฟหกสด ฟหก" width="100%" />
      </mx:Application>
      -----------
      I am trying to embed Thai font . can somebody help me please
      appreciate your help
      krs