Mity Docs Mity Docs for Mity Digital
Google Fonts Documentation

Installation

Requirements

Statamic Google Fonts requires:

  • Statamic 5

  • PHP 8.2 or later

For Statamic 3.3 or Statamic 4, please use v1, however note it is no longer being supported.

Installation

Install Statamic Google Fonts via composer:

1composer require mitydigital/statamic-google-fonts

This will install the package the Spatie Laravel Google Fonts package, if you do not have it installed already.

You will also need to publish the Laravel Google Fonts configuration file - refer to the package's installation instructions for full details. You'll need this to configure your Google Font URLs.

Just as a checklist, make sure you:

  • publish the configuration file

  • configure your font URLs

  • configure the disk, and run php artisan storage:link if required, and review your .gitignore as needed

  • configure deploy scripts to prefetch (if required)