Google Font not working on Safari
For some odd reason I have experience this on some web fonts from Google...when this has happened I usually get them to my server and/or convert them in fontsquirrel....Safari should be able to take TTF Files no matter what ver:
Nunito TTF ver
Roboto font not working in Safari or Mobile browsers after deployment on Netlify
If the above solution did not work:
Try downloading the font font instead of importing the font this might work ( procedure mentioned below in 3rd point ).
Some other things you should check is in this SO question: A related question from Stack Overflow
- You should also include font-weight and font-style properties(worked for some)
- It should look something like this:
font-family: 'Roboto Sans', sans-serif;
font-weight:900;
font-style:italic;
- If you are importing the font font in the css file like this:
then change it and import it in the html file in the@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap')
<head>
tag or just
follow the code:<head>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
rel="stylesheet">
</head> - If all of the above fails then download the font from google fonts and do this in your
root css file@font-face {
font-family: 'Font_name';
font-style: normal;
font-weight: normal;
src: local('Font_name'), url('Font_name.woff')
format('woff');
}
*{
font-family: Font_name
}
- After downloading the font from google fonts do not forget to move the .woff
files to project directory else its
not going to work - I tested it out on app.lambdatest.com and it worked well and the screen shot
of the result is here:
Google Font doesn't load in Safari
Font is inside /hu folder
Instead of:
../fonts/inconsolata-v18-latin-regular.ttf
Use:
../hu/fonts/inconsolata-v18-latin-regular.ttf
Related Topics
How to Apply Custom Animation Effect @Keyframes in Mui
Why Doesn't Position: Sticky Work in Chrome
Firefox @Font-Face with Local File - Downloadable Font: Download Failed
<A> with an Inner <Span> Not Triggering :Active State in Ie 8
Selector for Nth Nested Elements
Parse Errors When Using Calc with Rem and Px
CSS Loading Locally But Not in Heroku for a Rails App
Must Bootstrap Container Elements Include Row Elements
Load Fonts with Webpack and Font-Face
Rotating Table Header Text with CSS Transforms
Does SCSS Support Inline Comments
Tcpdf Not Render All CSS Properties
How to Use CSS Position Sticky to Keep a Sidebar Visible with Bootstrap 4
Less CSS Set Variables in Media Query
Internet Explorer Font Face Ssl
Object-Fit, Object-Positioning and Absolute Positioning