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
|
get
|
||||||
{
|
{
|
||||||
Match match = Regex.Match(Rtf, @"\{\\fonttbl\{.*?\}\}");
|
StringBuilder sb = new StringBuilder();
|
||||||
return match.Value;
|
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
|
private string FontSize
|
||||||
@ -697,6 +704,7 @@ namespace Volian.Controls.Library
|
|||||||
return match.Value;
|
return match.Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddLink20(string linkValue, string linkUrl)
|
private void AddLink20(string linkValue, string linkUrl)
|
||||||
{
|
{
|
||||||
string fonttab = FontTable;
|
string fonttab = FontTable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user