Jump to content

Custom font upload (.otf) not displaying on Safari, but works on Chrome

Recommended Posts

Site URL: https://gtf-technologies.squarespace.com

Password to access the site is: sustainability

I've added a custom brand font upload to my client's website. It displays perfectly on Chrome, but defaults to a serif font on Safari. I've used custom fonts many times and never had this problem. There are multiple .otf files and I've linked them all in Custom CSS as follows:

@font-face {
    font-family: 'Decimal Bold';
    src: url('https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/62602780700de322bef6cdda/1650468736767/Decimal-Bold-Pro.otf');
    font-family: 'Decimal Semibold';
    src: url('https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/6260279055b5a43970fe6cbf/1650468752519/Decimal-Semibold-Pro.otf');
  font-family: 'Decimal Book';
src:
url('https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/62602785cc73d30b0c8e4e45/1650468741689/Decimal-Book-Pro.otf');
    font-family: 'Decimal Medium';
  src:
url ('https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/6260278ba67dc25a0def59f0/1650468747580/Decimal-Medium-Pro.otf')
  }
h1 {font-family: 'Decimal Bold'!important;}
h2 {font-family: 'Decimal Semibold'!important;}
h3 {font-family: 'Decimal Semibold'!important;}
h4 {font-family: 'Decimal Medium'!important;}
sqsrte-large {font-family: 'Decimal Medium'!important;}
p {font-family: 'Decimal Book'!important;}
sqsrte-small {font-family: 'Decimal Book'!important;
}
.header-nav *, nav.header-menu-nav-list * {
    font-family: 'Decimal Semibold'!important;
      text-transform: uppercase; 
}
.sqs-block-button-element {
  font-family: 'Decimal Semibold'!important;
}
.sqs-button-element--primary {
  font-family: 'Decimal Semibold'!important;
}
.user-items-list .list-section-title p {
  font-family: 'Decimal Bold'!important;
}
.user-items-list-carousel__slides h2.list-item-content__title {
  font-family: 'Decimal Semibold'!important;
}
.sqs-block-form .field-list .title {
  font-family: 'Decimal Semibold'!important;
}

Any feedback on possible errors or how to fix would be greatly appreciated!

Edited by JaclynRavae
Link to comment

Your code is invalid. Use this new code

@font-face {
    font-family: 'Decimal Bold';
    src: url('https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/62602780700de322bef6cdda/1650468736767/Decimal-Bold-Pro.otf');
}
@font-face{
    font-family: 'Decimal Semibold';
    src: url('https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/6260279055b5a43970fe6cbf/1650468752519/Decimal-Semibold-Pro.otf');
}
@font-face {
    font-family: 'Decimal Book';
    src: url('https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/62602785cc73d30b0c8e4e45/1650468741689/Decimal-Book-Pro.otf');
}
@font-face{
    font-family: 'Decimal Medium';
    src: url 'https://static1.squarespace.com/static/625ff0119482286fea0d6589/t/6260278ba67dc25a0def59f0/1650468747580/Decimal-Medium-Pro.otf'
}

h1 {
    font-family: 'Decimal Bold' !important;
}
h2, h3 {
    font-family: 'Decimal Semibold' !important;
}

h4, p.sqsrte-large {
    font-family: 'Decimal Medium' !important;
}
p, p.sqsrte-small {
    font-family: 'Decimal Book' !important;
}
.header-nav *,nav.header-menu-nav-list * {
    font-family: 'Decimal Semibold' !important;
    text-transform: uppercase;
}
.sqs-block-button-element, .sqs-button-element--primary, .user-items-list .list-section-title p {
    font-family: 'Decimal Semibold' !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!)

Link to comment
  • 1 month later...

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.