javascript fonts

Using Javascript to Detect Installed Fonts

I did a fair amount of googling on this one.  My original need for this was to see what fonts PhantomJS supported for screenshots.  The task of figuring out what fonts are available, and actually worked was a bit a pain.  It’s a clever trick to measure pixel size of what the text should be if the font is installed and rendered properly.




Leave a Reply

Your email address will not be published. Required fields are marked *