sorry, I wasn't clear enouth. I need to apply the font to a text written in Illustrator document.
The reason i'm writing it in a general Extension Builder forum is that the problem should be solved somehow similarly in Photoshop, InDesign etc.
Also I did write in Illustrator sdk and Illsutrator scripting forums, but no luck so far =(
You can embed it and read the ByteArray. If you write the ByteArray to a file in the common fonts folder, it should be avialable to users (alhtough they might need to restart the app first...)
Installing the font into fonts folder is a back up plan for me. The font list might not refresh in time, so the user will have to restart the app, or , even worse, my extension might not have the rights to install the font into fonts folder. So I'd better figure out a way to do that without moving anyhing to the fonts folder
To make a font available to the app, moving it into a fonts folder is the only way.
1) There's a user fonts folder, so permissions should not be an issue with that.
2) You can try bundling the font in the zxp and have Extension Manager install the font in the correct location.
3) I don't know exactly what you're trying to do, but you can render a font in Flex and add the results to your document as an embedded/linked file. You can probably manage to get it in as live paths if that's desirable to you.