Toggle between css style on font availibility
-
There is a javascript to find out whether an specific FONT installed on user’s machine or not?
Pastebin link to “JavaScript/CSS Font Detector“
https://wordpress.pastebin.com/EqGPZ8CC{Source of this script : Here}
Using this javascript, I want to add a code in the header.php file such that :
If an specific font (named as “Andalus.ttf”) is found, then use stylesheet styleA.css, otherwise use styleB.cssCan anyone help me to do this?
Thanks in advance.
- The topic ‘Toggle between css style on font availibility’ is closed to new replies.