How can I add a "font-style:" fallback just in case the specified style isn't recognised by the browser just like we do with font-family ? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

How can I add a "font-style:" fallback just in case the specified style isn't recognised by the browser just like we do with font-family ?

20th Sep 2016, 11:17 AM
Joshua Ng andwe
Joshua Ng andwe - avatar
2 Respuestas
+ 1
Hi, As far as I know this is not something you can do with CSS alone. A JS solution is the answer I think… https://developers.google.com/fonts/docs/webfont_loader https://github.com/typekit/webfontloader
20th Sep 2016, 11:30 AM
Krasimir Vatchinsky
Krasimir Vatchinsky - avatar
+ 1
Font styles are pretty standard across the board. It shouldn't ever be an issue really. If you are having problems currently I would actually like to hear what they are.
30th Sep 2016, 10:42 PM
Ryne
Ryne - avatar