Skip to content
Back to skills

Google Web Fonts

ASecurity

Use the Google Fonts API to add fonts to web pages.

  • 2,237 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 6, 2026
ai-agentsgoapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add LeoYeAI/agent-master-skills --skill google-web-fonts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Web Fonts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Google Web Fonts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leoyeai-google-web-fonts-agent-master-skills/badge)](https://www.skillsdirectory.com/skills/leoyeai-google-web-fonts-agent-master-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: google-web-fonts
description: Use the Google Fonts API to add fonts to web pages.
---

# Google Web Fonts

## Use Cases

- Importing Google Fonts in HTML
- Building font CSS URLs (family, style, weight, subset, text parameters)
- Controlling font loading behavior with font-display
- Applying font effects (Beta)

## Quick Start

### 1. Include the Font Stylesheet

```html
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Font+Name">
```

### 2. Use the Font in CSS

```css
body {
  font-family: 'Font Name', serif;
}
```

## Building API Parameters

### Basic Format

```
https://fonts.googleapis.com/css?family=Font+Name
```

### Multiple Fonts (separated by |)

```
https://fonts.googleapis.com/css?family=Tangerine|Inconsolata|Droid+Sans
```

### Styles and Weights (separated by :)

| Style | Specifier |
|-------|-----------|
| Italic | `italic` or `i` |
| Bold | `bold` or `b`, or numeric value such as `700` |
| Bold Italic | `bolditalic` or `bi` |

Example:
```
https://fonts.googleapis.com/css?family=Cantarell:italic|Droid+Serif:bold
```

### font-display Control

```
https://fonts.googleapis.com/css?family=Roboto&display=swap
```

### Subsets (subset parameter)

```
https://fonts.googleapis.com/css?family=Roboto+Mono&subset=cyrillic,greek
```

### Performance Optimization (text parameter)

Specify the characters needed to reduce the font file size by up to 90%:

```
https://fonts.googleapis.com/css?family=Inconsolata&text=Hello%20World
```

### Font Effects (Beta)

```
https://fonts.googleapis.com/css?family=Rancho&effect=shadow-multiple
```

Usage:
```html
<div class="font-effect-shadow-multiple">This is a font effect!</div>
```

## Common Effects List

| Effect | API Name | Class Name |
|--------|----------|------------|
| 3D | `3d` | font-effect-3d |
| 3D Float | `3d-float` | font-effect-3d-float |
| Anaglyph | `anaglyph` | font-effect-anaglyph |
| Neon | `neon` | font-effect-neon |
| Shadow Multiple | `shadow-multiple` | font-effect-shadow-multiple |
| Vintage | `vintage` | font-effect-vintage |

Files in this skill

  • .clawhub/origin.json148 B
  • SKILL.md2 KB
  • _meta.json135 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.