Search…

X3 Photo Gallery Support Forums

Search…
 
Brinck10
Topic Author
Posts: 11
Joined: 22 Jun 2008, 09:04

Embed font

14 Mar 2009, 09:51

Is it possible to embed a font to the gallery?

If, how?

Regards, Frederik.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Embed font

16 Mar 2009, 11:33

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 ...
Last edited by mjau-mjau on 29 Apr 2009, 15:11, edited 1 time in total.
 
Brinck10
Topic Author
Posts: 11
Joined: 22 Jun 2008, 09:04

16 Mar 2009, 16:25

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

17 Mar 2009, 23:13

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
 
Brinck10
Topic Author
Posts: 11
Joined: 22 Jun 2008, 09:04

19 Mar 2009, 13:14

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

30 Mar 2009, 05:29

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.