fix for insert transition on a high level (bolded) step. Needed to build a font table instead of parsing from RTF.
This commit is contained in:
parent
ecff8237a2
commit
e29c6121f0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user