Jump to content

Custom Font not showing on other browsers without the font file downloaded

Recommended Posts

Hello, 

I have uploaded + code injected our branding font to our squarespacesite. files Woff. & Woff2.
However the prescribe font is not showing on browsers without the font file downloaded.
Maybe my code is wrong? 

I have added what the type should look like: the curlier font and the font it displays. 

If you can help it would be highly appreciated. 

Thanks in advance ! 

This is our code: 

h2 {

  font-family: 'Kaftan Serif';

  font-weight: 4.0;

  font-style: ;

  font-size: px;

  letter-spacing: 0.em;

  text-transform: lowercase;

  line-height: 1em;

}

@font-face {
    font-family: 'Kaftan Serif';
    src: url(https://https://glockenspiel-piano-w6t8.squarespace.com//Kaftan Serif.woff2) format('woff2');
    src: url(https://https://glockenspiel-piano-w6t8.squarespace.com//Kaftan Serif.woff) format('woff');
}

h2,{
    font-family: 'Kaftan Serif' !important
}

Screenshot 2021-11-18 at 11.48.58.png

IMG_1740.jpg

Link to comment

Please check font file url. The font url in your code doesn't exist

Bold text in below is font file url

src: url(https://https://glockenspiel-piano-w6t8.squarespace.com//Kaftan Serif.woff2) format('woff2');
    src: url(https://https://glockenspiel-piano-w6t8.squarespace.com//Kaftan Serif.woff) format('woff');

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.