When I do Inspect Element on an HTML element in a webpage, I can see the font-family statement
font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
but is there any way I can determine which of the fonts my browser has matched, that is, whether it managed to find Arial or Helvetica?
If my browser could not supply Arial or Helvetica fonts, how do I determine which font it used to match the generic font category?
PARTIAL ANSWER
I now at least have an answer to the second part of my original question, which was:
Where are the font category default fonts defined? I can set a default font for 'serif', 'sans-serif' and 'monospace' in the settings for Chrome or Firefox, but not for 'cursive' or 'fantasy'.
The answer is: in Firefox, go to about:config
. There are preferences here for font.name.cursive.x-western
and font.name.fantasy.x-western
. If you change the Value of these preferences this will change the browser default font for the font category. (I don't know about other browsers.)
(This answer was as a result of these links: http://forums.mozillazine.org/viewtopic.php?f=7&t=223294 and http://shallowsky.com/blog/tech/web/firefox-cursive-fantasy.html)