public static void RecreateFonts() { using (Label l = new Label()) { l.CreateControl(); using (Graphics g = Graphics.FromHwnd(l.Handle)) { float step = 72f / g.DpiX; _smallestFont = new Font(ThemeFontFamily, 9 * step, FontStyle.Regular, GraphicsUnit.Point); _smallFont = new Font(ThemeFontFamily, 9 * step, FontStyle.Bold, GraphicsUnit.Point); _normalFont = new Font(ThemeFontFamily, 11 * step, FontStyle.Regular, GraphicsUnit.Point); _normalBoldFont = new Font(ThemeFontFamily, 11 * step, FontStyle.Bold, GraphicsUnit.Point); _largeFont = new Font(ThemeFontFamily, 12 * step, FontStyle.Bold, GraphicsUnit.Point); _veryLargeFont = new Font(ThemeFontFamily, 15 * step, FontStyle.Bold, GraphicsUnit.Point); _extremeLargeFont = new Font(ThemeFontFamily, 35 * step, FontStyle.Bold, GraphicsUnit.Point); } } }