title: How to get the actual rendered font when it's not defined in CSS?
body: <p>How do I get the actual font face and font size of an element when the CSS <code>font-face</code> and <code>font-size</code> properties are not defined?</p>
  
  <p>For example, the JavaScript snippet</p>
  
  <pre><code>object.style.fontFamily
  </code></pre>
  
  <p>does not return any value. That's pretty obvious, assuming CSS hasn't applied a style to <code>object</code> anywhere. But, of course, a certain font is used to render the text, probably the system font or the webbrowser default font.</p>
  
  <p>So can, for instance, JavaScript get that rendered font?</p>