public static string FormatText(string fontFace, int fontSize, bool bold, string color, string text) { var format = Styles.GetFormatString(fontFace, fontSize, color, bold); return(string.Format(format, GLib.Markup.EscapeText(text))); }
static WelcomePageSection() { var face = Platform.IsMac ? Styles.WelcomeScreen.Pad.TitleFontFamilyMac : Styles.WelcomeScreen.Pad.TitleFontFamilyWindows; headerFormat = Styles.GetFormatString(face, Styles.WelcomeScreen.Pad.LargeTitleFontSize, Styles.WelcomeScreen.Pad.LargeTitleFontColor); }
public static string FormatText(string fontFace, int fontSize, Pango.Weight weight, string color, string text) { var format = Styles.GetFormatString(fontFace, fontSize, color, weight); return(string.Format(format, GLib.Markup.EscapeText(text))); }