Jump to content

Custom typefaces appearing incorrectly on Safari & iOS

Recommended Posts

Posted

Site URL: https://www.lucylawson.co.uk

Hi there, 

My clients website is viewing the custom fonts differently on safari and iOs.

Looks totally as expected on Chrome, but appears different on Safari.  

.ttf .otf .woff .woff2 have all been uploaded.

 

@font-face {
    font-family: 'NoeDisplay';
    src: url('https://static1.squarespace.com/static/60661ef2806161468599d160/t/60661fb6b8414c574a547e86/1617305526790/NoeDisplay-Black.otf');
    font-weight: black;
}
@font-face {
        font-family: 'Graphik';
    src: url('https://static1.squarespace.com/static/60661ef2806161468599d160/t/60661fd8db8f047724129954/1617305560410/Graphik-Black.otf')
}

h1 {font-family: 'NoeDisplay-Black';}
h2 {font-family: 'NoeDisplay-Medium';}
h3 {font-family: 'Graphik-Medium';}

Screenshot 2021-05-18 at 16.27.29.png

Screenshot 2021-05-18 at 16.27.43.png

  • Replies 1
  • Views 611
  • Created
  • Last Reply
Posted

You declared incorrect font-name for h1,h2,h3

Use this code

@font-face {
    font-family: 'NoeDisplay';
    src: url('https://static1.squarespace.com/static/60661ef2806161468599d160/t/60661fb6b8414c574a547e86/1617305526790/NoeDisplay-Black.otf');
}

@font-face {
    font-family: 'Graphik';
    src: url('https://static1.squarespace.com/static/60661ef2806161468599d160/t/60661fd8db8f047724129954/1617305560410/Graphik-Black.otf');
}

h1, h2 {
    font-family: 'NoeDisplay' !important;
}
h3 {
    font-family: 'Graphik' !important;
}
.sqs-block-horizontalrule hr {
    background: #eb5741;
    height: 1px !important;
}

 

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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.