public void setFontInfo() { int font_size = Properties.Settings.Default.FontSize; _regularFont = new FontInfo(Properties.Settings.Default.ProportionalFont, font_size); _fixedFont = new FontInfo(Properties.Settings.Default.FixedWidthFont, font_size); }
protected FormattedText buildFormattedText(String Text, FontInfo Font, CharDisplayInfo cdi, DrawingContext dc) { TextFormattingMode tfm = TextFormattingMode.Display; FormattedText ft = new FormattedText(Text, CultureInfo.CurrentCulture, FlowDirection.LeftToRight, Font.Typeface, Font.PointSize, ZColorCheck.ZColorToBrush(cdi.ForegroundColor, ColorType.Foreground), _substituion, tfm); setStyle(cdi, Text.Length, ft); return ft; }