How to Add Google Web Fonts to Web pages
Google Free Web fonts offer hundreds of free and optimized fonts for web. The Google Web Fonts directory is directory of core web fonts that you can utilize for your WebPages. The Google Web Font API can be utilized to make your web page look great. All these services are free and implementation is very easy. Google Web Fonts implements Monotype Imaging’s MicroType Express compression format this will help them to load faster.
Adding Google fonts to a web page is very easy and you can complete the process in few seconds. All you need to add a link to the Google Web Font style sheet and refer the same in your CSS styles.
Related:
How to Add Google Web Fonts to Web pages.
As we mentioned it is very easy to add Google Web Fonts to a web page. You need to provide a link to the style sheet in the <head> section of your page or document. The link should be similar to the below.
1 | <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=FontName"> |
Here “http://fonts.googleapis.com/css” is the base css URL. It accepts a query parameter “family“. You can specify any valid name for the “FontName“. Once added you can use the font-family in the CSS section. For example
1 2 3 4 5 | <style>
.someClass { font-family: 'FontName', serif;
font-size: 48px;
}
</style> |
Where the “FontName” should be replaced with proper font name.
In the above example “Inconsolata” is the font family. So the CSS style can be changed to
1 2 3 4 5 | <style>
.someClass { font-family: 'Inconsolata', serif;
font-size: 48px;
}
</style> |
Your page may be using more than one web font. How do we link to multiple font css? Linking multiple fonts allows you to use all of those fonts in your page. You can specify multiple fonts in URL string separated using “pipe” symbol. See the example below.
1 | http://fonts.googleapis.com/css?family=Tangerine|Inconsolata|Droid+Sans |
This will load the fonts Tangerine, Inconsolata and Droid Sans respectively.
The following code shows example usage of the Google Web Fonts
You can preview the Google Web Fonts and select the one that you want to include in your web pages. Also you can add a specific font family to your font collection, or you can even download the complete font (TTF) collection.
Sign up or join Globinch on Social Media
Stay Connected
Follow globinch
Popular Posts
- Search Engines for File Sharing Sites : Rapidshare Search, Megaupload and More 6 comment(s) | 16258 view(s)
- Turn your Windows 7 Computer Into a Personal Wi-Fi Hotspot 15 comment(s) | 16117 view(s)
- Google Translate Now supports Bengali, Gujarati, Kannada, Tamil and Telugu 2 comment(s) | 15714 view(s)
- Google Top Searches Today – Hot Google Search Words today 12 comment(s) | 11559 view(s)
- Best PDF OCR Tools to Convert Scanned images to Text / Word Documents 20 comment(s) | 10154 view(s)
- Globinch Search 0 comment(s) | 8402 view(s)
- Access Blocked sites, Unblock Restricted Websites 15 comment(s) | 7313 view(s)
- Free Online OCR Software to Convert Images Into Searchable PDF, Doc, HTML or Text 3 comment(s) | 7238 view(s)
- Password Revealer – How To Reveal- Show Password Behind Asterisks? 7 comment(s) | 7180 view(s)
- Play Angry Birds Game Free and Offline in Chrome Browser 1 comment(s) | 7049 view(s)
Recent Articles
- Best Free Tools to Enlarge Images without Losing Quality
- How to Track Your Gmail Email and Schedule Gmail Mail Free?
- Google Webmaster Unnatural Links Detected Warning & Penalty
- How to Use Trial Software Version Forever Without Expire
- How to Use Folder as Drive or Convert Folder to Drive?
- Add Buttons, Message Boxes and Text Highlights in WordPress Post
- Top 20 Free WordPress Social Share Plugins
- rel=”shortlink” Short URL Indicator and Its WordPress Support
- Pagination SEO Using rel=”next” and rel=”prev” Link Attributes
- Watch Live IPL 2012 Season 5 Online on Your Computer or Mobile










Pingback: How to Enhance Websites Using @font-face? | Globinch