Lee Brimelow on Creating Runtime Loaded Fonts in Flash CS4

I’ve blogged before about embedding fonts in Flex applications by first creating an embedded font in a Flash movie. The process is pretty simple and works well with one large caveat, your final SWF is larger based on the file size of any embedded fonts. Why is this bad? If you’ve embedded four of your favorite fonts and your app is one big Flash movie or Flex application your overall app size is increased to include the font resources.Wouldn’t it be better if you could load the fonts at runtime only when they’re needed? Well, you can! Lee Brimelow recorded

You Might Also Like...

  • screen-shot-2010-06-16-at-15903-pm

    FXG code increases your swf container’s size and tax your CPU

    1330 readersI am a big fan of FXG but I want to point out a caveat in regards to using FXG code in your Flash/Flex applications. FXG code increases your SWF container size and tax your CPU, so you should take that into account when deciding if it’s better to load images on runtime, embed

  • Quick Tip – Font embedding in Flex 3.0 – II

    706 readersThere is so much to font embedding that I keep getting new problems and resolutions The problem: Embedding font on textfield which renders HTML text. ... instancetextObj.htmlText = "<font size='28' face='Arial' >Hello <b>How</b> <font size='28' face='SomeOtherFontFace' >Are </font> You</font>" ... <mx:Text id="instancetextObj" /> I ensured that the fonts used above are embedded. My css look

  • Embedding Fonts In Your Flex App

    363 readersOften, designers provide me with specifications which include non-standard font types. In order to ensure that users view my application's fonts as I intend, it is necessary to embed these fonts into Flex. Not doing so can create issues with meeting requirements, problems with layout when user's browser's substitute the closest font match (that doesn't

  • Embedding local system fonts in Flex 4

    961 readersIn a previous example, “Embedding fonts by name instead of location”, we saw how you could embed a font in Flex by specifying the font name instead of a location by using the local() function instead of the src() function when embedding a font. The following example shows how you can load a system font

  • Flex and Embedded Fonts

    436 readersFlex tries to provide you with the most flexible way of using embedded fonts in your applications. If your application consists of just one SWF and you embed fonts in that SWF, everything should just work, but once there are...

  • Using embedded fonts with the MX AdvancedDataGrid control in Flex 4

    706 readersThe following example shows how you can use an embedded font with the MX AdvancedDataGrid control in Flex 4 by setting the embedAsCFF and fontFamily styles. <?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2010/02/24/using-embedded-fonts-with-the-mx-advanceddatagrid-control-in-flex-4/ --> <s:Application name="MX_AdvancedDataGrid_fontFamily_test" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">   [...]

  • Flex and Embedded Fonts

    175 readersFlex tries to provide you with the most flexible way of using embedded fonts in your applications. If your application consists of just one SWF and you embed fonts in that SWF, everything should just work, but once there are multiple SWFs involved, while it should work most of the time, if it doesn’t, you

  • Quick Tip – Font embedding in Flex 3.0

    579 readersMost fonts have four typeface styles: normal, bold, italic and bold-italic. Each typeface need to be embedded separately (even the normal one). You can embed TTF (TrueType) and OTF (OpenType) in Flex. Embedded fonts need not be installed in client’s machine and are anti-aliased for smother edges and better readibility. Fonts such as Type 1

  • Embedding fonts, Unicode ranges and the horizontal tabular character…

    1280 readersI ran into this very strange bug in the flash player while working on a project. The problem appeared when using flex 4's TLF (text layout framework) with embedded fonts (using cff). In other projects I added the unicode ranges to the css file like lots other blogs describe (like: http://blog.flexexamples.com/2007/08/07/specifying-certain-unicode-ranges-for-embedded-fonts/), you do want to

  • Material Image

    Flash CS3: Made-To-Order Text

    91 readers We'll show you how to create a simple component-based Flash application that allows the user to dynamically change the font size of a text area. Font size control is nice to have for accessibility purposes, in addition to just being cool to play with.

'>How to create a top quality logo for your company
  • Remove a Section of Your Photo
  • Subscribe to RSS headline updates from: GurusUnleashed
    Powered by FeedBurner

  • Design & Career Resources

    Open design job and RFQ/RFP listings for Thursday, 29 July Courtesy of Design Jobs Live!
    The latest resources and free stuff (like textures, fonts, Photoshop brushes, scripts, plug-ins, and much more!) from workflowFreelance.com. Read more!
    The latest headlines from workflowFreelance.com. Read more!
  • Popular Search Terms

    Curious what others are searching for? Below are the most popular search terms over the last 30 days.