public Font GetThemeFont(MetroFontSize size, MetroFontWeight weight, string category = "*") { float fontSize; if (!TryGetThemeProperty("FontSize", out fontSize, size.ToString(), category)) { fontSize = MetroDefaults.FontSize; } string fontFamily; if (!TryGetThemeProperty("FontFamily", out fontFamily, weight.ToString(), category)) { fontFamily = MetroDefaults.FontFamily; } FontStyle fontStyle; if (!TryGetThemeProperty("FontStyle", out fontStyle, weight.ToString(), category)) { fontStyle = MetroDefaults.FontStyle; } return(MetroFonts.ResolveFont(fontFamily, fontSize, fontStyle)); }