Jump to content

Custom Font not working on my iphone but works on my desktop

Recommended Posts

My custom font (T-Star) appears to be working on my desktop but when i preview it on my iphone it is not working and appears as a different font. How can i fix this? I have copied and pasted my custom font code below:

 

@font-face

{ font-family: ‘tstar’;

src: url(https://static1.squarespace.com/static/65effac229233b5507fbdd10/t/65f405fe8351ba4a3b854cb8/1710491134228/TSTAR-Regular.ttf); }
h1 {font-family: 'tstar';}
h2 {font-family: 'tstar';}
h3 {font-family: 'tstar';}
h4 {font-family: 'tstar';}
p1 {

font-family: 'tstar';}


.sqsrte-large {

font-family: 'tstar';}
p2 {

font-family: 'tstar';}


.sqsrte-small {

font-family: 'tstar';}
p3 {

font-family: 'tstar';}


.sqsrte-small {

font-family: 'tstar';}
monospace {font-family: 'tstar';}

Link to comment
  • Replies 1
  • Views 274
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

There were a few issues that I've fixed below. The single quote marks were incorrect.

// font tstar
@font-face { 
  font-family: 'tstar';
  src: url('https://static1.squarespace.com/static/65effac229233b5507fbdd10/t/65f405fe8351ba4a3b854cb8/1710491134228/TSTAR-Regular.ttf'); 
}

h1 {font-family: 'tstar';}
h2 {font-family: 'tstar';}
h3 {font-family: 'tstar';}
h4 {font-family: 'tstar';}
p {font-family: 'tstar';}
.sqsrte-large {font-family: 'tstar';}
.sqsrte-small {font-family: 'tstar';}
monospace {font-family: 'tstar';}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.