Google Fonts

Updated: 05/04/2019 by Computer Hope

Initially launched in 2010 as Google Web Fonts, Google Fonts is a collection of interactive application programming interfaces that allow users to use web fonts on their website. This service is hosted by Google, and all the fonts and bandwidth is free.

Note

Google Fonts are used over the Internet and are not meant to be installed locally. They only work in your browser.

How to implement a Google font

Google fonts can be used on your website by adding CSS (cascading style sheets) or JavaScript into your source code. For example, to use the "Open Sans" Google font, you would add the following line into the <head> section of your HTML (hypertext markup language) code.

<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

Once this line is added in your CSS styles, specify the "Open Sans" font in the font-family using a line similar to the example below.

font-family: 'Open Sans', sans-serif;
Note

When using any font not included in a browser, the visitor must download the font to view your web page. Like all other downloads, adding a font increases the web page's load time.

Font, Google, Internet terms, Programming, Safe font