Google Fonts in Text field?

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Tong
Posts: 313
Joined: Fri Apr 13, 2012 9:30 pm

Can we used it, if yes, how look code for it?

https://developers.google.com/webfonts/ ... ng_started
User avatar
Hopki
Gnome
Posts: 13039
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

HI,
This will work with HTML5 output, not Flash.

As in the example link add to the HTML page Head section:

Code: Select all

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">
Then in the skin editor and a text box use the code:

Code: Select all

<span style="font-family: Tangerine; font-size: 48px; text-shadow: 4px 4px 4px #ff0000;">This is a test to show Google fonts working with a red drop shadow</span>
This will then show the Tangerine font with a Red drop shadow as I am using #ff000000.

The above code can be found in the Tip Formatting Text.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
chantus
Posts: 55
Joined: Thu Mar 25, 2010 3:07 am

The index.html file must be edited on each export? Is there any way to avoid that, I mean, change the head once and then make several exports without overwriting that style?
Many thanks

Pablo
User avatar
Hopki
Gnome
Posts: 13039
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Pablo,
Not really, but you can have two HTML5 outputs, just give the first output a different file name for the HTML page such as test.html.
The second output leave at index.html. Then add the code to the index.html.
When you make your outputs use the first output that will overwrite the test.html page and not the index.
Or, adding the code is the last thing you do.
I will add a feature request for this to see if we can't make this less painful :wink:
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply