Is there an easy way (in .Net) to test if a Font is installed on the current machine?
string fontName = "Consolas"; float fontSize = 12; using (Font fontTester = new Font( fontName, fontSize, FontStyle.Regular, GraphicsUnit.Pixel)) { if (fontTester.Name == fontName) { // Font exists } else { // Font doesn't exist } }
548k questions
547k answers
4 comments
86.3k users