public override void ApplyState(VObject obj) { base.ApplyState(obj); var t = (BaseTextVObject)obj; t.Text = Txt.Replace(">", ">").Replace("<", "<").Replace(""", "\"").Replace("&", "&"); // Backward compatibility if (F_N == null && FN != null) { var font = FontService.FindSuitableFont(FN, B, I, S); t.Font.FauxBold = font.FauxBold; t.Font.FauxItalic = font.FauxItalic; t.Font.PostScriptName = font.PostScriptName; t.Font.Size = FS; } else { t.Font.FauxBold = F_FB; t.Font.FauxItalic = F_FI; t.Font.PostScriptName = F_N; t.Font.Size = F_S; } t.TextColor = TC; t.Underline = U; t.SetInternalAlignment(A); t.Tracking = Tr; t.Leading = Ld; t.CurrentFileId = CFI; t.IsRichText = IRT; t.VerticalScale = VS; t.HorizontalScale = HS; }