A Alberto Aug 4, 2005 #1 How can I find out if the application is running in a system with small or big fonts? Thank you
F Franco, Gustavo Aug 4, 2005 #2 //Gets the Default DPI Form form = new Form(); Graphics graphics = form.CreateGraphics(); if ((graphics.DpiY / (float) 96) == 1F) Console.WriteLine("Normal Font"); else if ((graphics.DpiY / (float) 120) == 1F) Console.WriteLine("Big Font"); else Console.WriteLine("Custom Font"); Gustavo
//Gets the Default DPI Form form = new Form(); Graphics graphics = form.CreateGraphics(); if ((graphics.DpiY / (float) 96) == 1F) Console.WriteLine("Normal Font"); else if ((graphics.DpiY / (float) 120) == 1F) Console.WriteLine("Big Font"); else Console.WriteLine("Custom Font"); Gustavo