Every time they issue more and more APIs, and Google is one of the most free APIs. This time has presented at conferences Google I/O, made on 19 and 20 of May, Google Font API . This API helps you to add fonts in any web page. This is about as clear benefit:
- Font Having high-quality open source
- It works in most browsers
- It is extremely easy to use.
You can see all the fonts available in the Google Directory of Fonts . For now have 18 sources, with variations in italics, bold, bold italic. In addition one of them has 10 different families. Therefore we have an extensive catalog that will allow us to another style to our website and get out of the typical universal fonts.
In addition, the catalog is very carefully because it has a tab for each of the fonts. Tab you can find the name of the designer, with a link to his biography and other personal data. You also have the description of the letterpress and the set of characters. There are also examples of texts in different sizes from 36px to 12px, in different colors, # 000, # 333 and # 666, and different variants, italic, bold and bold italic can see the example of typography Cararell sheet .
If you find interesting and want to see how to include it in your web tell you different ways, just by using CSS and Javascript.
Only with CSS
You have several ways to include the fonts on your website. The simplest of all is to include an additional style sheet:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Font+Name"> |
Then simply use the font in your style sheet in the usual way:
CSS selector { font-family: 'Font Name', serif; } |
If you do not want to load all variants, the variants can specify that you want to add two points and variations you want separated by commas:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Font+Name:variante"> |
If you want to add multiple fonts, it is necessary to make a call each of them, simply separate the names with pipes “|” is sufficient:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine|Inconsolata|Droid+Sans"> |
And if you want to do everything at once just follow all the above rules and looks something like this:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine:bold,bolditalic|Inconsolata:italic|Droid+Sans"> |
Using Javascript
If you do not want the burden of your page is affected by having to solve other DNS servers and upload you can not control, you can try WebFont Loader. A Javascript API that gives you more control over the fonts loaded. This form is also very simple, but requires a minimum knowledge of Javascript. To add these lines into the head of your page should have everything ready for use
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js">
</script>
<script type="text/javascript">
WebFont.load({
google: {
families: [ 'Tangerine', 'Cantarell' ]
}
});
</script> |
This loads the fonts listed in families and if all went well and the browser supports these fonts will be added in the html classes’ wf-active “and” wf-family-type-active ‘(eg’ wf-Cantarell -n4-active ‘).
This allows us to use our font style sheet alternatives in case of not having the desired load of this:
.wf-inactive h1 {
font-family: serif;
}
.wf-active h1 {
font-family: 'Tangerine', serif;
} |
With Loader WebFont sources can apply to other providers such as called Books TypeKit or even make any font suppliers overnight specifying the supplier .
In the call to Loader WebFont can specify callbacks to run your own code at any given time. Calback functions of which are available:
- loading() Called when all modules of web fonts providers (google, typekit, and / or custom) have reportadoq ue start loading fonts.
- fontloading(fontFamily, fontDescription) is called when it starts charging each application for web typography. FontFamily parameter is the name of the font family, and fontDescription represents the style and font weight.
- fontactive(fontFamily, fontDescription) Called when loading has finished each of the applications.
- fontinactive(fontFamily, fontDescription) is called if an application has failed to load.
- select() is called when all web fonts have been loaded or not you were able to charge, as long as at least one is loaded successfully.
- inactive() is called if the font web browser does not support or none of the sources failed to load.
interesting blog. It would be great if you can provide more details about it. Thanks you
Great an article on this subject. Me who tries hopelessly to learn top more. You have just given me a real blow of hand. Thank you and be on that I am going to share this information with my buddies.
I am surprised at the things I overlooked before I read this post. Thanks for the great information.
I like your blog very much!
You write very detailed,Pay tribute to you.Couldn’t be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!
Had some difficulty viewing the site in Firefox on Linux, but I still loved the site!
This is very interesting. I actually enjoy your writing style and your word choice more than anything Smile
Hi,good article,thanks for your share! and I wonder if i can quote this post in my site if I put a link back to yours? Waiting for your answer!
Topic succeeded. Do good work guys. I’ll still be watching you!
I just couldnt leave your website before saying that we really enjoyed the quality information you offer to your visitors… Will be back often to check up on new stuff you post!
Well, this is my primary check out for your webpage! We’re a group of volunteers and commencing a brand new initiative in a community in the identical niche. Your weblog offered us useful data to work on. You have done a marvellous occupation!
It’s easy to get sick of all these article directories. I could use all the article directories that instantly posts your article.
Never underestimate the power of passion.
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work.
Awesome article, but just curious, what is your main field of expertise? Do you write part time, or are you a professional in your field? I wouldn’t mind reading an About Us section or something to describe what you do so I can better understand your point of view.
I was so frustrated beacuse I couldn`t resolve this issue. Then I found your site in google and problem is solved. Thanks!
I just wanted to comment your blog and say that I really enjoyed reading your blog post here. It was very informative and I also digg the way you write! Keep it up and I’ll be back to read more soon mate
No verb is not a crime. No crime, no sentence.
I can see how you can get frustrated with many of these article directories. I want every article directory that quickly accepts my articles.
Good blog! I really love how it’s easy on my eyes as well as the info are well written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your rss feed which should do the trick! Have a nice day!
Hey, I’m having a problem viewing your site in my browser. Could you please check this. My browser is Opera 7 btw.
hehe loved the comments and what an intelligent post.
I just got a new chainsaw and was wondering if anyone had any tips for me. What is recommended to do for maintenance? How do I sharpen the chain? Any help is appreciated. Thanks!
Great post, i belive blog posts like this add so much value to the community. Dear admin can I use some of the information from this post if I provide a link back to your site, pls pls? …10x a lot Catch ya later – Lopera ‘Stephen Pierce’ Fan
Yes! I agree what you say!
I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.
I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.
Beautiful website!
There is almost nothing as useless as undertaking efficiently that which must not be completed in any way.
Thank you very much this is a very nice information!. . . . . .
Wow this really takes me back, a good quick read.
Hi, great post.
I’ve given up a combined 92 points in my first two online Madden 11 games. Ouch. I’ve scored a combined 74 points in those two games.
Thank you for your help! Adrian
So this morning i sold right away and then i noticed it going back up to .35..then back down,,then up then back down,,,so i put in a bid at .34 and it came close but never got it..so i raised it a lil more and then got it..then it just dropped again…and i lost my shirt cause of it..
I know this is really boring and you are skipping to the next comment, but I just wanted to throw you a big thanks – you cleared up some things for me!
Extremely good!!! Bookmarked this page that has this incredible critical info. Will come back to see if there are any updates. You, the author, are a master. Thanks
Genuinely truly great web site article which has got me considering. I never looked at this from your point of view.
Definitely truly beneficial web site article which has got me considering. I never looked at this from your point of view.
Thanks for taking the time to write that, I found it very interesting. If you get a chance you should visit my site as well. I hope you have a great day!
Truly actually very good web site submit which has got me considering. I never looked at this from your point of view.
Great precise info, I’ve been searching on this topic for a while. Bookmarked and recommended!
yo ppl i can’t wait for the expendables the movie to come out! Its going to be awsum!
thanks for the inspiration I was stressed by work but i learnt that life is about living to the fullest and enjoying every moment.Thanks a million
Thank you! I really appreciate your article, in fact I think you deserve a thumbs up.
looking around for the best site to get one.
I just wanted to comment and say that I really enjoyed reading your blog post here. It was very informative and I also digg the way you write! Keep it up and I’ll be back to read more in the future
I discovered you web site with yahoo search engine! incredibly wonderful! Greetings from Belgium
thanks for the inspiration I was stressed by work but i learnt that life is about living to the fullest and enjoying every moment.Thanks a million
found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later
good articles here hopefully i learned from it.
Hello, I attempted to email you regarding this particular article still cannot reach you. Please email me if have a second. Cheers.
Very good stuff.
Great precise info, I’ve been searching on this topic for a while. Bookmarked and recommended!
good articles here hopefully i learned from it.
Thanks this made for intresting reading. I adore your wordpress theme, i often come back here and i dont know why. I just seriously like your site lol… I recently read something simular to this on That Are i think they may of stolen your blog?
Incredible submit which has received me considering concerning the possible of the idea. Definitely genuinely wonderful.
Nice piece of details that you’ve got in this weblog article. Hope I can get some a lot more of this stuff on your website. I’ll arrive back.
That’s a good post!
Let’s see. Apple, Microsoft, Facebook, Oracle all hate Google. Maybe Google’s social problem is it can’t make friends with any other company
I was just browsing for relevant blog posts for my project research and I happened to stumble upon yours. Thanks for the excellent information!
Thanks for sharing this one!
Hello. Excellent career.
gives employ a terrific ınternet site decent Gives many thanks for the work to guide me
thanks for the inspiration I was stressed by work but i learnt that life is about living to the fullest and enjoying every moment.Thanks a million
I feel you are too good to write Genius!Thanks for posting, maybe we can see more on this.
good articles here hopefully i learned from it.
So cool! Thanks.
It’s easy to be tired of these article directories. I want all the article directories that quickly takes articles.
Using an article directory is a great way to gain exposure. I realize that
I really like your site. Very good posts! Please continue posting such awesome cotent.
thanks for the inspiration I was stressed by work but i learnt that life is about living to the fullest and enjoying every moment.Thanks a million
Awesome post peter, it’s been a long-time since I’ve been on here. I see that nobody has lost their passion. Good to be back.
I feel you are too good to write Genius!Thanks for posting, maybe we can see more on this.
I just wanted to comment your blog and say that I really enjoyed reading your blog post here. It was very informative and I also digg the way you write! Keep it up and I’ll be back to read more soon mate
Wow, great post.Really looking forward to read more. Will read on…
So Great! I need some infos in this post for my rapport de stage. Can i have your contact please? I need your permission to quote it
. Anyway, That’s great job. Keep going.
wow its great post..
That’s a good post!
Hey very nice blog!!
Hi, I can’t understand how to add your site in my rss reader. Can you Help me, please
Gush, this is just perfect!
post to my blog?
Good blog! I definitely love how it is easy on my eyes as well as the info are well written. I am wondering how I may be notified whenever a new post has been made. I have subscribed to your rss feed which need to do the trick! Have a nice day!
Hey,I just find your website doesnt appear right under IE 7. I think it’s because of some CSS problems. Please check it. BTW, very nice blog!
Hi dude, can i post articles to your website ? Let me know if you are interested
Hey,I just find your website doesnt appear right under IE 7. I think it’s because of some CSS problems. Please check it. BTW, very nice blog!
Great Story, hey I found this story while surfing for lyric updates. Thanks for sharing I’ll email my friends about this too.
Hi administrator I take pleasure fromI like what you all have to say. Very straight to the point.
Thank you for building your blog site, I located you on Google and I need to say I’m impressed. Appreciate it yet again…
I use Digg to find stories all the time. It’s great when you don’t have anything else to write about. Nice list.
I absolutely adore reading your website, your variety of writing is extraordinary.This blog as usual was useful, I have had to bookmark your website and subscribe to your feed in googlereader. Your website looks amazing.
Thanx for this, I guess I’ll have to rethink my perspective after all these years.
Thanks for breaking this down for the rest of us. We need more of this! Thanks and 5+.
Very Interesting Information! Thank You For Thi Post!
I feel you are too good to write Genius!Thanks for posting, maybe we can see more on this.
Need to subscribe to this blog, great post. Found it on bing.
Be Blessed Always..
I am an student and i am willing to write some part of this post to my university blog,can i do so.Also just require your permit just mail me if you are happy about it. i believe this post will be helpful for the info i am wanting to publish
really liking the website, and hope this, as well as the excellent article some other people have written, will help somebody
Thank you for blogging this post. It is a great piece of work.
Great post. Thanks!
I cannot thank you enough for the article post.Much thanks again. Keep writing.
I enjoyed the post. There is some good information here to bookmark.
Like the blog. I’ve been creating solar panels for small businesses for years now and doing pretty well… Glad I found this place.
A big thank you for your article.Really looking forward to read more. Really Cool.
I’m pretty new to BlogEngine and noticed that a number of your other readers have different avatars. Any idea as …
Marvelous blog! I’ll probably be referencing some of this info in my next speech. I would appreciate it if you visited my blog at
writing content is very boring, it certainly worth every bit of time that you put into it.
Hey how’s it going? Thankyou for writing such an informative post. I have long been attempting to explain the exact same thing to my friends but I think it’s better if I just email them the link to this article instead.
Fantastic resources. Wish I could get more info like this by other people! Thanks!
Thanks very much for this great Post. Good topic to write about on my site. I might set a bookmark to your blog.
Yes, I do imagine that I couldn’t use to last longer than expected.
In searching for sites related to web hosting and specifically comparison hosting linux plan web,your site came up.
Awesome site, I’m very glad I wandered onto it through yahoo oing to need to put this one on the old bookmark list
awesome review and tutorial. Today there are thousands of wordpress themes but not many of its authors are coming up with tutorial. Great job and thanks for the review.
thanks i really enjoy reading you’re article !!
this post is very usefull thx!
I will be checking back sometime to see if you have any new content, cheers.
This has genuinely sparked up an notion in my brain. This really is a amazing weblog submit.
Maintain up the very good perform mate. This weblog submit indicates how properly you realize and know this subject.
That’s just the thing I need
I like this blog. I will certainly be peeping into it frequently.
I really enjoyed this post. You explain this topic very well. I really love your blog and I will definetly bookmark it! Keep up the interesting posts!
I just added this webpage to my feed reader, great stuff. Can’t get enough!