CodePen

HTML

            
              
            
          
!

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              function checkFont(strFamily) {
  var objDiv = document.createElement('div');

  objDiv.style.fontFamily = strFamily;
  objDiv.appendChild(document.createTextNode('FONT TEST'));
  
  if (window.getComputedStyle) {
      return window.getComputedStyle(objDiv, null).getPropertyValue('font-family') === strFamily;
  }

  return objDiv.currentStyle.fontFamily === strFamily;
}
$.each(['Arial','Helvetica','Times','it', 'doesn\'t','work','sfdstrwefdfnope'], function(i, font){
  $('body').append('The font "'+font+ '" is available: '+ checkFont(font)+ '<br>')
})
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................