ElizaAudreyS Posted May 3 Share Posted May 3 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
Ziggy Posted May 3 Share Posted May 3 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) 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment