C2019-022 Removed the use of the Arial Unicode font (was in for backward compatibility) when using symbols with a proportional font. We now use FreeSerif (supplied by Volian)
C2019-022 When pre-processing table cells before we print a table, we now replace any Arial Unicode font reference with FreeSerif.
This commit is contained in:
@@ -825,6 +825,14 @@ namespace Volian.Print.Library
|
||||
// space before the 'ulnone' the following won't work. Also, this change was not
|
||||
// made in the non-table code. If the problem occurs there, it should be added.
|
||||
_StatRTB.Rtf = Regex.Replace(str.Replace(@"\~", @"\u160?"), @"(?<!\\[a-z0-9]+) \\ulnone", @"\u160?\ulnone");
|
||||
string s = _StatRTB.Rtf;
|
||||
// C2019-022 Microsoft no longer supplies the Arial Unicode font. New computers more than likely do not have this font
|
||||
// This logic will replace the Arial Unicode font reference in each table cell with FreeSerif (supplied by Volian)
|
||||
// this will avoid slow printing, font errors, and un-readable PDF files
|
||||
// We had a case (at Volian) where the font existed (was installed on a Windows 10 computer)
|
||||
// but so some reason (unknown at time of writing) Windows say it was bad.
|
||||
s = s.Replace("Arial Unicode MS", "FreeSerif");
|
||||
_StatRTB.Rtf = s;
|
||||
}
|
||||
else
|
||||
_StatRTB.Text = str;
|
||||
|
Reference in New Issue
Block a user