private void ReadTextAttributes(BaseTextVObject vObject, SvgVoText svg) { ReadContentAttributes(vObject, svg); vObject.TextColor = svg.GetTextColor(_serializer); vObject.Text = svg.Text; svg.Font.CopyTo(vObject.Font); vObject.Underline = svg.Underline; vObject.SetInternalAlignment(svg.Alignment); vObject.Tracking = svg.Tracking; vObject.Leading = svg.Leading; vObject.IsRichText = svg.IsRichText; vObject.VerticalScale = svg.VerticalScale; vObject.HorizontalScale = svg.HorizontalScale; }
private void WriteTextAttributes(SvgVoText svg, BaseTextVObject vObject) { WriteContentAttributes(svg, vObject); var cm = vObject.GetColorManagement(true); svg.SetTextColor(vObject.TextColor, ColorManagement.GetPreviewColor(cm, vObject.TextColor), _serializer); svg.Text = vObject.Text; svg.Font = new FontSettings(vObject.Font); svg.Underline = vObject.Underline; svg.Alignment = vObject.Alignment; svg.Tracking = vObject.Tracking; svg.Leading = vObject.Leading; svg.IsRichText = vObject.IsRichText; svg.VerticalScale = vObject.VerticalScale; svg.HorizontalScale = vObject.HorizontalScale; }