From e29c6121f0b14e9129e03b730675f93663979336 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 4 Dec 2009 21:26:35 +0000 Subject: [PATCH] fix for insert transition on a high level (bolded) step. Needed to build a font table instead of parsing from RTF. --- PROMS/Volian.Controls.Library/StepRTB.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 094bd06b..18904a8f 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -685,8 +685,15 @@ namespace Volian.Controls.Library { get { - Match match = Regex.Match(Rtf, @"\{\\fonttbl\{.*?\}\}"); - return match.Value; + StringBuilder sb = new StringBuilder(); + sb.Append(@"{\fonttbl{\f0\fnil\fcharset2 " + this.Font.FontFamily.Name + @";}"); //}\f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}}"; + if (!FontIsFixed()) + sb.Append(@"{\f1\fnil\fcharset0 Arial Unicode MS;}}"); + else + sb.Append(@"{\f1\fnil\fcharset0 VESymbFix;}}"); + return sb.ToString(); + // Match match = Regex.Match(Rtf, @"\{\\fonttbl\{.*?\}\}"); + //return match.Value; } } private string FontSize @@ -697,6 +704,7 @@ namespace Volian.Controls.Library return match.Value; } } + private void AddLink20(string linkValue, string linkUrl) { string fonttab = FontTable;