Add Preloaded Fonts in Vartheme
{%- include '@vartheme_bs5/includes/preload.twig' with { vartheme_bs5_path: vartheme_bs5_path, html_dir: html_attributes['dir'] } only -%}
Steps to Add a New Web Font
1. Add Web Font Files in the Fonts Folder
2. Add the @font-face CSS File to a Library
3. Add the Font to The preload.twig File
4. Clear Cache And Test The Font
Content of the Preload.twig File
Available Variables
Links to Learn by Example
Last updated