public GenericTextParagraphProperties(FontRendering newRendering)
 {
     _flowDirection = FlowDirection.LeftToRight;
     _textAlignment = newRendering.TextAlignment;
     _firstLineInParagraph = false;
     _alwaysCollapsible = false;
     _defaultTextRunProperties = new GenericTextRunProperties(
         newRendering.Typeface, newRendering.FontSize, newRendering.FontSize,
         newRendering.TextDecorations, newRendering.TextColor, null,
         BaselineAlignment.Baseline, CultureInfo.CurrentUICulture);
     _textWrap = TextWrapping.Wrap;
     _lineHeight = 0;
     _indent = 0;
     _paragraphIndent = 0;
 }
 public GenericTextRunProperties(FontRendering newRender)
 {
     _typeface = newRender.Typeface;
     _emSize = newRender.FontSize;
     _emHintingSize = newRender.FontSize;
     _textDecorations = newRender.TextDecorations;
     _foregroundBrush = newRender.TextColor;
     _backgroundBrush = null;
     _baselineAlignment = BaselineAlignment.Baseline;
     _culture = CultureInfo.CurrentUICulture;
 }