Google web fonts?
Posted: 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 in your HTML code,
and then something like
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
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'>and then something like
Code
font-family: 'Font_Family_Example', sans-serif;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