
Google Fonts for Flarum


Use any Google Font on your Flarum 2 forum. Pick a body font and a heading
font from the full Google Fonts library — applied site-wide, with a live preview
right in the admin panel.
Features
- 🔎 Searchable picker for a curated list of popular Google Fonts, in the
admin settings — and you can type/paste any Google Font family name, even
ones not in the list.
- ✍️ Separate body and heading fonts, so you can pair (e.g.) Inter body
text with Playfair Display headings.
- 👀 Live preview of each font directly in the admin panel.
- ⚡ Server-side injection of the Google Fonts stylesheet into the page
<head> — no flash of unstyled text, no client round-trip.
- 🪶 No configuration files, no API key required.
Installation
composer require ernestdefoe/google-fonts
Then enable Google Fonts in your admin panel.
Usage
- Go to Admin → Google Fonts.
- Set a Body font and (optionally) a Heading font.
- Start typing to search, or paste an exact family name from
fonts.google.com.
- Click Save. The fonts apply to your forum immediately.
Leave a field blank to fall back to your theme's default font.
Updating
composer update ernestdefoe/google-fonts
php flarum cache:clear
License
MIT