A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Generate TTF font at runtime and use it in TF

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    11

    Generate TTF font at runtime and use it in TF

    Is it possible to generate font at runtime, define it as Font class and then use it in text field?
    for example:
    1) user uploads table of custom letters (JPG)
    2) as3 app. traces it to curves.
    3) as3 app. creates Font class from it.
    4) user can use it within a TextField

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    I believe that, technically, you could build a ttf file in a bytearray. You could then inject that into a pre-made swf bytearray as an embedded font. Then, load that swf bytearray, and access the font resource. However, there are a lot of points there that I'm not sure will work. Even if they did, it's certainly not trivial to build any of these bytearrays properly.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center