enable jifr disable jifr

JiFR FontLib

How to create a fontlib with Flash Develop

  • Download and open the sample project
  • Modify the JIFRFont.as file to point to the correct font(s)

    Also make sure you write down:
    The name of the class
    The fontName in the Embed tag(s)
    The name of the static var(s)

    These values are used in the JiFR configuration

    You can optionally modify the unicodeRange if you want to embed other characters
  • Build the project and you are ready to use the font.



How to create a fontlib with Flash CS3

  • Create a new Flash file (ActionScript 3)
  • Go to the library and click this panel's options menu in the top right corner and choose New Font.
  • In the Font Symbol Properties dialog, choose the font you want to embed (e.g. Verdana) in the Font menu.
  • In the Name field, type the name you want to give your font (e.g. Verdana) as shown in Figure 1. Click OK.
    The name you specify here will be the name you should use in the css files.

    figure 1













  • Right-click the newly created font symbol in the Library panel, and choose Linkage.
    In the Linkage Properties dialog (Figure 2), select the Export for ActionScript check box.
    Also make sure that the "Export in first frame" is selected as well.
    In the Class field, type the classname you want to give to your font.
    e.g.: Verdana.
    Now, the symbol is officially an ActionScript 3.0 class that can be used in AS3 code.
    figure 2
























  • Register the font I'm not sure if this step is required to use it with jifr.

    In the timeline window: Select frame 1 of the actions layer, and open the Actions panel (F9). Add the code shown in the following code block.
    import flash.text.Font;
    
    Font.registerFont(Verdana);
    				
    Make sure you specify the classname you used in the previous step.

Click here to download an early beta