PHPackages                             ernestdefoe/google-fonts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ernestdefoe/google-fonts

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

ernestdefoe/google-fonts
========================

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.

0.2.3(1mo ago)1163MITPHPCI passing

Since Jun 7Pushed 1mo agoCompare

[ Source](https://github.com/ernestdefoe/google-fonts)[ Packagist](https://packagist.org/packages/ernestdefoe/google-fonts)[ RSS](/packages/ernestdefoe-google-fonts/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Google Fonts for Flarum
=======================

[](#google-fonts-for-flarum)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/ernestdefoe/google-fonts/blob/main/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/bf93c47208be001b69f8aa512ee717af6f7e6ef63812da4b21c22da5116bd94e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65726e6573746465666f652f676f6f676c652d666f6e74732e737667)](https://packagist.org/packages/ernestdefoe/google-fonts)

Use **any Google Font** on your Flarum 2 forum — *or upload and self-host your own*. Pick a body font and a heading font, applied site-wide, with a live preview right in the admin panel.

Features
--------

[](#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.
- ⬆️ **Upload your own font** (self-hosting): upload one `.woff2` per weight and the forum serves the font itself, with **no call to Google**. This works everywhere — including regions where Google Fonts is blocked, such as **mainland China** — and avoids the GDPR concern of fetching fonts from Google on every page view.
- ✍️ **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** into the page `` — no flash of unstyled text, no client round-trip. The Google stylesheet is loaded **non-render-blocking**, so even on the Google path an unreachable Google never stalls page paint; visitors simply keep the system-font fallback.
- 🪶 No configuration files, no API key required.

Installation
------------

[](#installation)

```
composer require ernestdefoe/google-fonts
```

Then enable **Google Fonts** in your admin panel.

Usage
-----

[](#usage)

1. Go to **Admin → Google Fonts**.
2. Set a **Body font** and (optionally) a **Heading font**.
3. Start typing to search, or paste an exact family name from [fonts.google.com](https://fonts.google.com).
4. Click **Save**. The fonts apply to your forum immediately.

Leave a field blank to fall back to your theme's default font.

### Self-hosting a font (works where Google is blocked)

[](#self-hosting-a-font-works-where-google-is-blocked)

1. Under a font, click **Upload your own font**.
2. Give the font a **name** (this is just the family label used internally).
3. For each weight you want (Regular, Bold, …), pick the weight and upload a `.woff2` file. A **variable** `.woff2` covers every weight in a single file; a static file gets browser-synthesized bold for weights you don't upload.
4. Uploads save **immediately** — no Save click needed for the files.

Only `.woff2` is accepted (it's the smallest, universally-supported web font format). If you have a `.ttf`/`.otf`, convert it once with any free online woff2 converter. To go back to a Google font, click **Use a Google font instead** (this removes the uploaded files).

Updating
--------

[](#updating)

```
composer update ernestdefoe/google-fonts
php flarum cache:clear
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance93

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

5

Last Release

33d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c9978664264055711c21fbcf73c937f758df771d9cb40f6a25370b10123e7abc?d=identicon)[ernestdefoe](/maintainers/ernestdefoe)

---

Top Contributors

[![ernestdefoe](https://avatars.githubusercontent.com/u/24905286?v=4)](https://github.com/ernestdefoe "ernestdefoe (5 commits)")

---

Tags

extensionthemetypographygoogle fontsflarumfonts

### Embed Badge

![Health badge](/badges/ernestdefoe-google-fonts/health.svg)

```
[![Health](https://phpackages.com/badges/ernestdefoe-google-fonts/health.svg)](https://phpackages.com/packages/ernestdefoe-google-fonts)
```

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)[fof/masquerade

User profile builder extension for your Flarum forum.

2025.4k6](/packages/fof-masquerade)[fof/sitemap

Generate a sitemap

1799.7k2](/packages/fof-sitemap)[flarum/gdpr

Features for GDPR, PII management

1338.8k22](/packages/flarum-gdpr)[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1034.8k7](/packages/fof-discussion-language)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
