I need to get a list of all font names that are available for use on the page via @font-face
declarations (whether in external stylesheets or inline <style>
elements). This is for a script that will be included on pages I do not control.
Ideally I'd like to do this without re-downloading all CSS files over AJAX and then parsing them.
But I can't use the new document.fonts API because I need this to be reasonably cross-browser (even IE7 if possible).
Is there any way to do this without downloading and parsing the CSS?