Hi! I’m hoping to find out what I’m doing wrong with uploading my custom font. I’ve done this half a dozen times before with no problems. Here is my CSS:
@font-face {
font-family: ‘GT-Pressura’;
src: url(‘GT-Pressura-Bold.woff2’) format(‘woff2’),
url(‘GT-Pressura-Bold.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: ‘Oakes Grotesk’;
src: url(‘OakesGrotesk-Regular.woff2’) format(‘woff2’),
url(‘OakesGrotesk-Regular.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
font-display: swap;
}
p, span { font-family: ‘Oakes Grotesk’ !important; }
h1, h2, h3, h4, h5 { font-family: ‘GT-Pressura’ !important; }
The weird thing is Oakes Grotesk works just fine but GT-Pressura doesn’t. Both fonts are uploaded to my assets folder in .woff and .woff2 format and the custom CSS is in the custom-styles.liquid folder as per my theme’s set up (Emerge.)
Any ideas?
