Google Fonts
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://fontfyi.com/iframe/glossary/google-fonts/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://fontfyi.com/glossary/google-fonts/
Add a dynamic SVG badge to your README or docs.
[](https://fontfyi.com/glossary/google-fonts/)
Use the native HTML custom element.
Google's free, open-source font library with 1,900+ families. The largest collection of freely-licensed web fonts, served via a global CDN.
Google Fonts is a free, open-source web font service operated by Google, offering over 1,900 font families that can be loaded directly from Google's CDN or self-hosted in projects. Launched in 2010, it democratized access to quality web typography by removing both licensing complexity and the performance burden of self-hosting fonts in early web infrastructure.
The library spans a broad range of styles — geometric sans-serifs like Nunito and Poppins, humanist designs like Open Sans and Lato, elegant serifs like Playfair Display and Merriweather, display faces, monospace fonts for code, and variable fonts. Many of the most widely used typefaces on the web today come from Google Fonts.
Loading via CDN:
<!-- Single family -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
body {
font-family: 'Inter', sans-serif;
}
Loading multiple families:
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;1,400&family=Source+Sans+3:wght@400;600&display=swap" rel="stylesheet">
The display=swap parameter applies font-display: swap to all fonts in the request, which improves Core Web Vitals by preventing Flash of Invisible Text (FOIT).
Self-hosting for performance:
While the CDN approach is convenient, self-hosting Google Fonts often yields better performance, especially after changes to cross-origin caching policies in modern browsers. Tools like google-webfonts-helper simplify downloading the correct WOFF2 files:
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: optional;
src: url('/fonts/roboto-v32-latin-regular.woff2') format('woff2');
}
All fonts in the library are released under open licenses — primarily the SIL Open Font License (OFL) or Apache License — meaning they can be used commercially, modified, and embedded in products without per-seat licensing fees.
Google Fonts also supports variable fonts, allowing a single font file to cover a full range of weights and styles. Fonts like Inter, Roboto Flex, and Source Sans 3 ship as variable fonts, which can dramatically reduce the number of HTTP requests and total bytes transferred:
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:[email protected]&display=swap');
h1 { font-weight: 700; }
p { font-weight: 400; }
For privacy-conscious projects or offline-capable apps, self-hosting is always preferable. For rapid prototyping or projects where setup time matters, the CDN is hard to beat. The Google Fonts API documentation provides detailed guidance on subsetting, variable font axes, and optimization techniques.
Términos relacionados
Herramientas relacionadas
Fuentes que ilustran este concepto
Saber más
La guía completa para principiantes sobre cómo añadir Google Fonts a tu sitio web: usando @import, etiquetas link y la API de Google Fonts.
Reseñas de FuentesTodas las fuentes de Google Fonts son gratuitas para uso comercial bajo la Licencia de Fuente Abierta de SIL. Aquí están las mejores para proyectos comerciales profesionales.
Historia y Cultura TipográficaLas fuentes gratuitas y de código abierto democratizaron la tipografía. Desde la Licencia de Fuente Abierta de SIL hasta las más de 1.900 familias de Google Fonts: cómo sucedió y por qué importa.
Historia y Cultura TipográficaEl viaje de 600 años desde el tipo móvil de Gutenberg hasta la revolución de código abierto de Google Fonts: cómo la tecnología tipográfica dio forma a la comunicación y el diseño.