Page 1 of 1

Use Google web fonts...

Posted: Tue Dec 13, 2011 1:35 pm
by dejansoftware
Hi,

I need some tips how to integrate Google web fonts http://www.google.com/webfonts#HomePlace:home into my Joomla.

I try to do as google says but every time something was wrong.

Also tried couple of plugins, like Pocha..., still nothing.

I am using JoomFish for 2 languages, one of them is Cyrillic and second is Latin with "ć, č, ž, š" characters.

Thanks.

Re: Use Google web fonts...

Posted: Tue Dec 13, 2011 9:06 pm
by dejansoftware
Anyone???

Re: Use Google web fonts...

Posted: Tue Dec 13, 2011 9:29 pm
by aemiller
Where are you adding the Google script? Do you have a url we can see?

Re: Use Google web fonts...

Posted: Tue Dec 13, 2011 9:30 pm
by brian
If the problem is that the google font is working just not for ALL the characters then you should check that the google fonts you use actually support those characters

Re: Use Google web fonts...

Posted: Wed Dec 14, 2011 8:00 am
by dejansoftware
Yes, I find google font that supports all of these fonts, the question is how to integrate this in my joomla web site?

Re: Use Google web fonts...

Posted: Wed Dec 14, 2011 9:28 am
by brian
You can either use one of the many extensions available (http://extensions.joomla.org/extensions ... typography) to help you OR


1. Go to http://www.google.com/webfonts and select font that you like.

2. Click Quick Use link in the font's box. Select styles (bold, italic) and character sets (latin, cyrillic) that you need. More options selected make the font's package bigger and slower for downloading. Make sure you selected only the options that you really need.

3. On the same page, you will find a code snippet that you should paste in the head section of your webpage (between <head> and </head>) where you'd like to use the font. If you need it for a Joomla template, you should paste the code in template's index.php file in the head section.

4.You can now use the font in your CSS stylesheets as if it was a regular font

Re: Use Google web fonts...

Posted: Mon Jun 11, 2012 8:09 am
by f9tech
hello brian!
I think its not index.php in the template.Its index.html.Please search index.html and paste the google link in between head tags. Head tags must be added by you in index.html page.This will be occured mostly in case of jat3 templates.

Re: Use Google web fonts...

Posted: Mon Jun 11, 2012 8:15 am
by brian
f9tech your answer is so wrong I wonder if you have ever used joomla

Re: Use Google web fonts...

Posted: Mon Jun 11, 2012 12:53 pm
by f9tech
Sorry brian! I am learning joomla.. i found two files named "index.php","index.html" in jat3 template folder.I didn't find any html tags in index.php file but i found html tags in index.html file.So i inserted head tags wrote google link.It works fine.I am attaching index.php and index.html..

Please correct me if i am wrong.

Re: Use Google web fonts...

Posted: Mon Jun 11, 2012 1:29 pm
by brian
It would be a miracle if it worked by using the index.html as they are not used by joomla but are there for a security reason to prevent directory listing.

Re: Use Google web fonts...

Posted: Tue Jun 12, 2012 4:59 am
by f9tech
hmmmm... k.. i didn't find any html tags in index.php.So can you please tell me? where should i include in index.php file? i included in index.html. Its working fine but tell me if i am wrong...

Thank you brian for replying me... ;D

Re: Use Google web fonts...

Posted: Fri Jul 06, 2012 5:26 pm
by texaswc
You probably didn't look in the right place .. my index.php has HTML tags .. including the HEAD tag .. version 2.5.6 .... the index.html files are purely security, nothing more ..

Not sure which HTML files you added to, but if you have that font on your system, in the windows/fonts folder, then remove it and see if you can still see the font on the webpage .. sounds more like you are seeing it because the font actually exists on your computer, in a font folder or system folder....removal of the font from that folder (temporarily) is a common test to see if you can actually see the font via the website or if it is from your system...

Re: Use Google web fonts...

Posted: Sat Jul 09, 2016 10:59 pm
by texaswc
BTW, I've found the easiest way to include custom fonts is to upload them and add the css. I've never used google fonts, don't much care to. Font Squirrel is a good place to get everything you need. Used them for the past few years. You can download the font you want, then go to their font generator page, upload the font and when it is done, download the ZIP file and you'll have a css file with all the css you need to add and the font in several formats for compatibility.