# fonts

Guides Claude Code on loading Google Fonts and local font assets in Remotion video projects without render glitches.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 849 repo stars
- Author: coleam00
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/fonts.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/fonts

## What it does

This rule tells the agent how to handle typography in Remotion compositions. When working with Google Fonts, it enforces the type-safe `@remotion/google-fonts` package, advising specific subsets and weights in `loadFont()` to keep payload sizes small.

For self-hosted font assets, the guide routes files into `public/` and links them via `staticFile()` with `@remotion/fonts`. Trying to render without running `npx remotion add` for the respective package will trigger missing module errors during video generation.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/fonts.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/fonts.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/fonts.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/fonts.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/fonts.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/fonts.md

## When to use it
- load Google Fonts inside Remotion video compositions
- configure local woff2 font files from the public directory
- limit font weights and character subsets to keep assets light
- block frame rendering until typography assets finish loading

## Example prompts
- Add Google Font Montserrat to my Remotion title screen
- Load a local woff2 font file for this video scene
- Set up font loading with specific weights and wait for it to be ready

## Similar
- [google-fonts-skill](https://affpapa.org/en/nevibecode/skills/google-fonts-skill.md) — skill · 210 installs
- [font-pairing-suggester](https://affpapa.org/en/nevibecode/skills/font-pairing-suggester.md) — skill · 609 installs
- [maplibre-fonts-glyphs](https://affpapa.org/en/nevibecode/skills/maplibre-fonts-glyphs.md) — skill · 335 installs
- [fonts-config-plugin](https://affpapa.org/en/nevibecode/rules/fonts-config-plugin.md) — rule · ★ 88 repo stars
- [visual-design-system-extractor](https://affpapa.org/en/nevibecode/skills/visual-design-system-extractor.md) — skill · 689 installs
- [react-pdf](https://affpapa.org/en/nevibecode/plugins/react-pdf.md) — plugin · ★ 540 repo stars

From the same set: [coleam00/second-brain-skills](https://affpapa.org/en/nevibecode/by/coleam00/second-brain-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
