Home arrow HTML arrow Displaying Bold Text with the Google Font API`s b Shorthand

Displaying Bold Text with the Google Font API`s b Shorthand

In this sixth part of the series, you will learn how to work with the “b” shorthand offered by the Google Font API, which can be used as a quick replacement for the “bold” option discussed in a previous part. The shorthand offers nothing especially difficult to grasp, so you shouldn’t have any problem using it when embedding bold fonts in your own (X)HTML documents.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 4
June 28, 2010
  1. · Displaying Bold Text with the Google Font API`s b Shorthand
  2. · Review: the i shorthand
  3. · Introducing the b shorthand
  4. · Including the CSS styles in an (X)HTML document

print this article

Displaying Bold Text with the Google Font API`s b Shorthand
(Page 1 of 4 )

If you’re looking for a quick and simple way to embed commercial fonts in your web pages without having to take a single cent out of your pocket, then you should take a peek at the Google Font API. It's a brand new web service implemented by the search engine giant that will let you use a decent number of commercial typefaces in your (X)HTML documents, which can be directly downloaded from Google’s servers by means of a set of simple query string arguments.

Of course, if you've read all of the articles that precede this one, it’s probable that you now have a more intimate background on how to utilize the API to define the visual presentation of your text-based HTML elements by using the commercial font families offered by Google. What’s more, over the course of those tutorials I also demonstrated how to take advantage of the “italic” and “bold” options provided by the API for downloading only the italicized and bold versions of a specified font family.

In addition, the Font API gives web designers the ability to use a shorthand when working with the two previous options. The “italic” argument can be directly replaced by the letter “i” within the query string, while the “bold” argument can be shortened by using the character “b.” That’s not rocket science, right?

But wait; even though its usage is very simple to grasp, the shorthand “b” hasn’t been covered yet, at least with a hands-on approach. To address this issue, in the lines to come I’m going to show how to work with the “b” argument, so you can learn how to use it within your own web pages.

Ready to learn the full details of this topic? Then let’s get started right now!

blog comments powered by Disqus

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials