Add Preloaded Fonts in Vartheme
{%- include '@vartheme_bs5/includes/preload.twig' with { vartheme_bs5_path: vartheme_bs5_path, html_dir: html_attributes['dir'] } only -%}
{%- include '@vartheme_bs5/includes/preload.twig' with { vartheme_bs5_path: vartheme_bs5_path, html_dir: html_attributes['dir'] } only -%}
/*
* Lora https://fonts.google.com/specimen/Lora
*/
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 400;
src: url(../webfonts/Lora-Regular.ttf) format('truetype');
}
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 700;
src: url(../webfonts/Lora-Bold.ttf) format('truetype');
} src: url(../webfonts/Lora-Regular.eot);
src: url(../webfonts/Lora-Regular.eot?#iefix) format('embedded-opentype'),
url(../webfonts/Lora-Regular.woff2) format('woff2'),
url(../webfonts/Lora-Regular.woff) format('woff'),
url(../webfonts/Lora-Regular.ttf) format('truetype');global-styles:
css:
theme:
fonts/lora/css/lora.css: {}<link rel="preload" href="/{{ vartheme_bs5_path }}/fonts/lora/Lora-Regular.ttf" as="font" type="font/tff" crossorigin="anonymous">