Possible duplicate:
Check if font is installed
let's say that I used the installed font on the system:
new System.Drawing.Font("Arial", 120F);
everything is good. Now, if I were to use a non-existing font:
new System.Drawing.Font("IdoNotExistHaHa", 120F);
I do not get an exception. As I can see, if I use a font that does not exist, I get a standard font (arial ?, not sure). Be that as it may, I would like to make an exception if there is no font found. How?
source share