# Uploading and embedding fonts during runtime

**URL:** <https://forum.kirupa.com/t/uploading-and-embedding-fonts-during-runtime/330418>\
**Category:** flash\
**Created:** [January 17, 2013, 10:23am UTC](https://forum.kirupa.com/t/uploading-and-embedding-fonts-during-runtime/330418 "2013-01-17T10:23:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexLucas](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@AlexLucas](https://forum.kirupa.com/u/AlexLucas)\
**Post date:** [January 17, 2013, 10:23am UTC](https://forum.kirupa.com/t/uploading-and-embedding-fonts-during-runtime/330418/1 "2013-01-17T10:23:07Z")

</div>

[COLOR=#000000][FONT=verdana]Good day.[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]I’m stuck with the following issue:[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]I have multiple fonts embedded into my application, but i can’t embed them all, so i want the user to upload his \*.ttf file, and then i want to embed it into my application, all this during runtime, and using only AS3/flex.[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]All i can think of right now, is upload the file to the server, compile an swf there which has the custom font embedded (i have an idea about how i should link the path to the font), and then load this swf into my main application.[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]But this is hardcore, basically i have send an instruction to the compiler in order to create the swf with my font (and i have no idea how to do that), as well as keep the whole SDK on the server.[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]Any other ideas on how to do this?[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]Anything would be appreciated, as i’m really stuck with this one.[/FONT][/COLOR]
