The easiest way is to use composer:
composer require toastnz/theme-fonts
Run dev/build afterwards.
Add the following to your config.yml (optional) to generate default fonts on dev/build
Fonts with a value will be locked and not editable in the CMS
Fonts with null value will be editable in the CMS
Toast\ThemeFonts\Models:
default_fonts:
- body: null
- headings: null
- comic-sans: 'comic-sans'getFontFamilyClassName() returns f- + getFontCustomID() so the css class is unique. f- is there to represent font and to ensure the class does not start with a number.