Page 1 of 1

Embed font

Posted: 14 Mar 2009, 09:51
by Brinck10
Is it possible to embed a font to the gallery?

If, how?

Regards, Frederik.

Re: Embed font

Posted: 16 Mar 2009, 11:33
by mjau-mjau
Brinck10 wrote:Is it possible to embed a font to the gallery?
I have been trying to find a solution for this earlier, without being very successful. It would require having a font_name.swf that could be loaded into the gallery and utilized. The problem was that flash can't use fonts which are contained in loaded child movieclips.

However, I hope to have a method for this ready for Imagevue 2.1 in not so long ... The idea would be to create a container document where the font is embedded, that loads imagevue2.swf as a child.

Update 30. April 2009: Sorry, tried the method above and it didn't work ...

Posted: 16 Mar 2009, 16:25
by Brinck10
Well, I've tried a bit myself, for example by making the theme-stylesheet load the font with the following code:
Code
/* Font import: */
@font-face {
    src:url("ComfortaaR.ttf");
    font-family: Comfortaa;
}

@font-face {
    src:url("ComfortaaB.ttf");
    font-family: Comfortaa;
    font-weight: bold;
}
But with no luck. And since I don't have the source file it's almost impossible to implement it! :-)

Anyway, the standard fonts are alright. I'm looking forward to the update, I must say that you do a great job!

/Frederik

Posted: 17 Mar 2009, 23:13
by mjau-mjau
It won't work through the CSS file like it may do with HTML. Flash requires fonts to be EMBEDDED into the documents. It actually exports the font in the SWF as vector outlines.

You can receive the source files, just read this first:
viewtopic.php?t=4233

Keep in mind, if you were gonna edit the SRC files to include additional fonts, you need to embed the fonts, and also find the textfields where you gonna use them, and make sure they have
Code
textfield.embedFonts = true

Posted: 19 Mar 2009, 13:14
by Brinck10
Thanks. I think I'll wait and see along with the upgrades.

By the way, I'm curious to know: Why do you still code in Actionscript 2.0? Actionscript 3.0 is faster, and it's easier to get an overview and to re-use the files; I'm sure you're aware of what, so what is the issue?

Frederik

Posted: 30 Mar 2009, 05:29
by mjau-mjau
You can't just mingle from AS2.0 to AS3.0 ... We would have to rewrite it in AS3.0.

You can be sure that any future independent releases, will be with AS3.0.