Undo? - Shared Fonts

  • Started
  • Last post
  • 5 Responses
  • ********

    Anyone have any experience of sharing fonts through a shared library accross multiple .swf's?

    Specifically when dealing with embedded fonts for dynamic text boxes.

    I have created the shared library and can select the required fonts from the drop down. If I choose to embed the characters in the text field my file size shoots up (not good).

    If I use this code:

    mainNavTxt.embedFonts = true;

    It fails to work. (very not good). Any help or ideas would appreciated.

    ********
  • UndoUndo0

    I normally set up an fla for shared objects like fonts.

    Choose 'New Font' from the little black arrow on yr library and select the font and give it a name.

    right-click the font and select linkage.

    check 'export for runtime sharing' and make sure the name of the libraryswf is in the url box. (if you save the file before doing this it will auto enter it)

    Publish the libraryswf.

    open yr main movie and drag the font from the library swf into the library for yr main movie.

    goto yr text box and select a font from the fonts drop down, the imported font will have an asterix next to it.

    make sure the shared objects swf is also uploaded to the server and hey presto.

    mail me if you have problems

  • unfittoprint0

    you should load a library.swf with ALL your fonts and assets before anything else [ie. main movie].

    that way, there will be a linkage identifier for the font symbol BEFORE loading the main movie.

    you may encounter some special situations where you'll definitely have to export the font in the same swf [ie. v2 components].

  • ********
    0

    Cheers Undo, have sent you an email.

  • ********
    0

    undo is teh new unfit?

    respect the elderly damnit!

  • ********
    0

    Sorted a workaround if anyone is interested.

    Masking was not working if I hadn't embeded the fonts on their individual txt fields (even using the linked shared font).

    But, if you create an mc containing text fields with embeded fonts and link it from the library, all other fields now work without needing to embed the font.

    I hate flash.