Using Embedded Fonts

There are two methods of telling the MulticolumnTextField to use embedded fonts (as opposed to device fonts) to render your text columns. Either check the 'Embed?' box next to your font choice in the custom interface, or set the mtfembedfonts property to true using this syntax:

myInstance.mtfembedfonts = true;

Whichever method you choose, the font itself MUST be embedded elsewhere in the .swf file. The following examples show you how:


Method 1
:

  1. Select the menu dropdown from the top right of the library window and choose "new font".
     
  2. Give your font a name and select your choice of font from the drop down menu.
     
  3. Click 'OK'.
     
  4. Select the font you have just created for your file and control+click (mac) or right-click (windows) and select 'linkage'
     
  5. Check 'Export for ActionScript' and 'Export in first frame' and give your font an identifier
     
  6. Make sure the identifier that you give the font matches the font you named in the custom interface or in the script.



Method 2
:

    1. Create a new dynamic textfield on an area off stage (so that it is not visible).

    2. Select the font for this textfield and choose to embed the required characters.

    3. Press the bold (“B”) button to embed the bold version of this font or italic ("i") to embed the italic version.