These are the steps I have taken to render my custom font in safari, all of which have been unsuccessful:
-
downloaded font assets within the code editor: .eot .tff. woff .woff2
-
the code used:
@font-face {
font-family: “CaviarDreams”;
src:
url(‘{{ ‘Caviar_Dreams.eot’ | asset_url }}’) format(‘eot’),
url(‘{{ ‘Caviar_Dreams.ttf’ | asset_url }}’) format(‘ttf’),
url(‘{{ ‘CaviarDreams.woff’ | asset_url }}’) format(“woff”),
url(‘{{ ‘CaviarDreams.woff2’ | asset_url }}’) format(“woff2”);
};
$heading-font: “CaviarDreams”;
.product-title.h4, h1, h2, h3, h4, h5, p, .p, .a, .small, .product-subtitle.mb0 {
font-family: CaviarDreams !important;
}
.product-loop__item .product-subtitle {
font-family: CaviarDreams;
}
- {% render ‘custom-fonts’ %} in theme.liquid
The site in question is www.colllanna.it
Your help is much appreciated