Font Detection in Javascript

Hi all
how can a webpage detect that any font (for example: ‘mangal’) is installed on system??