Search…

X3 Photo Gallery Support Forums

Search…
 
Scrobbesbyrigcyr
Topic Author
Posts: 3
Joined: 27 Jun 2012, 12:41

Google web fonts?

27 Jun 2012, 15:21

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Google web fonts?

28 Jun 2012, 00:23

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.
firedev.com
 
Scrobbesbyrigcyr
Topic Author
Posts: 3
Joined: 27 Jun 2012, 12:41

Re: Google web fonts?

28 Jun 2012, 01:52

OK - thanks Nick.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Google web fonts?

28 Jun 2012, 04:26

Confirm. Sorry, flash is not able to use google webfonts, but you could use it for the mobile version.
 
Scrobbesbyrigcyr
Topic Author
Posts: 3
Joined: 27 Jun 2012, 12:41

Re: Google web fonts?

28 Jun 2012, 11:10

Thanks Karl - I'll look into it.

John
 
User avatar
schreiber
Posts: 15
Joined: 05 Jul 2012, 15:32

Re: Google web fonts?

06 Jul 2012, 06:06

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?
Thanks,
Thomas Schreiber
http://mayfly.dk
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Google web fonts?

06 Jul 2012, 07:38

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.