Page 1 of 1

Google web fonts?

Posted: 27 Jun 2012, 15:21
by Scrobbesbyrigcyr
Hi Karl,

Sorry if this has been addressed already but searching the forum didn't turn anything up.

Is it possible to use Google Web Fonts with X2?

In principle, you just need to insert something like
Code
<link href='http://fonts.googleapis.com/css?family=Font_Family_Example' rel='stylesheet' type='text/css'>
in your HTML code,
and then something like
Code
font-family: 'Font_Family_Example', sans-serif;
in your CSS code ... at voilá!

I know editing the PHTML code is a bad idea because edits won't survive upgrades but I like the idea of linking to external fonts so everybody sees the same thing. So to test it out, I have tried adding the HTML code into index.gallery.phtml and then using Admin to insert the CSS code into the body style.
The php generated html look OK but I can't get the font embedding to work for me.

Is it possible to use Google fonts? If so, is there a way to do it without hacking the phtml?

Cheers,

John

Re: Google web fonts?

Posted: 28 Jun 2012, 00:23
by Nick
I don't think you will be able to use webfonts in Flash gallery. In HTML gallery you can add them via @import statement in custom CSS or by adding script tag to the SEO > Counters section I think.

Re: Google web fonts?

Posted: 28 Jun 2012, 01:52
by Scrobbesbyrigcyr
OK - thanks Nick.

Re: Google web fonts?

Posted: 28 Jun 2012, 04:26
by mjau-mjau
Confirm. Sorry, flash is not able to use google webfonts, but you could use it for the mobile version.

Re: Google web fonts?

Posted: 28 Jun 2012, 11:10
by Scrobbesbyrigcyr
Thanks Karl - I'll look into it.

John

Re: Google web fonts?

Posted: 06 Jul 2012, 06:06
by schreiber
Could You upload you own font into a local folder within the imagevue folder and use a font that's not linked to a specific OS? Lets say you want to use font "HappyCat" or whatever, and that font is a free to use font, but not everyone has it on their computer/device. Would that work?

Re: Google web fonts?

Posted: 06 Jul 2012, 07:38
by mjau-mjau
schreiber wrote:Could You upload you own font into a local folder within the imagevue folder and use a font that's not linked to a specific OS? Lets say you want to use font "HappyCat" or whatever, and that font is a free to use font, but not everyone has it on their computer/device. Would that work?
Unfortunately no, this is not possible. For that to happen technically, one would first need to embed a specific font into the flash before it is exported from the source file.