That's a difficult one, you would need information about the device and operating system to infer the font.
But I imagine, if you realllly needed that info. You could go the hard route and render the font on a canvas, vectorise and perform some sort of nearest neighbour search.