B2016-069: Hardspace appeared to be 2 spaces in ‘view’mode of StepRTB if proportional font (Arial)
This commit is contained in:
parent
f846cd5073
commit
6f454134db
@ -586,7 +586,16 @@ namespace Volian.Controls.Library
|
||||
// The following two lines replace hard spaces (ASCII) with the UNICODE represntation of Zero.
|
||||
// Other characters which behave like hard spaces are 28-31 and 128-159.
|
||||
if (!activeMode && Rtf.Contains(@"\'a0"))
|
||||
Rtf = Rtf.Replace(@"\'a0", @"\u1?");
|
||||
{
|
||||
// The following 3 lines were added to fix B2016-069. The issue was in the RichTextBox for the Arial
|
||||
// (Proportional) font, the hardspace appeared to be 2 spaces (really it was showing the space as the widest
|
||||
// width character). So instead of a hard space, a single quote "'" was used to designate where the hardspace
|
||||
// would be. This is only used for display, printing works.
|
||||
if (_MyItemInfo.FormatStepData != null && _MyItemInfo.FormatStepData.Font.FontIsProportional())
|
||||
Rtf = Rtf.Replace(@"\'a0", "'");
|
||||
else
|
||||
Rtf = Rtf.Replace(@"\'a0", @"\u1?");
|
||||
}
|
||||
OrigRTF = Rtf;
|
||||
_InitializingRTB = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user