Skip to main content
Participant
January 17, 2013
Answered

Uploading and embedding fonts during runtime

  • January 17, 2013
  • 1 reply
  • 915 views

Good day.

I'm stuck with the following issue:

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.


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.

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.


Any other ideas on how to do this?

Basically anything would be appreciated, as i'm really stuck with this one

This topic has been closed for replies.
Correct answer LucasAlex

It has multiple purposes, one of which is editing, printing and exporting text (and not only) into multiple formats. The user may find a font on the internet that he would like to use instead of the default ones that we provide, that's why i need to let him upload fonts.

1 reply

Inspiring
January 17, 2013

I have multiple fonts embedded into my application, but i can't embed them all

Why? I can`t think of any scenario that measure should be necessary other than to build a font-viewer with hundreds of Fonts.

Could you specify the purpose of the application?

LucasAlexAuthorCorrect answer
Participant
January 17, 2013

It has multiple purposes, one of which is editing, printing and exporting text (and not only) into multiple formats. The user may find a font on the internet that he would like to use instead of the default ones that we provide, that's why i need to let him upload fonts.

Inspiring
January 17, 2013

Here is a thread that deals with this problem.

There is a guy posting in it he did solve the problem you are talking about, but I couldn`t find a proof or demo of it.

It's defintiely possible... I've dynamically compiled swfs server side to embed fonts before.


Maybe you should write directly to him.