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
@ -585,8 +585,17 @@ namespace Volian.Controls.Library
|
|||||||
// representation (\'01). If you pass in the ASCII representation, it keeps the ASCII representation.
|
// representation (\'01). If you pass in the ASCII representation, it keeps the ASCII representation.
|
||||||
// The following two lines replace hard spaces (ASCII) with the UNICODE represntation of Zero.
|
// 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.
|
// Other characters which behave like hard spaces are 28-31 and 128-159.
|
||||||
if (!activeMode && Rtf.Contains(@"\'a0"))
|
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;
|
OrigRTF = Rtf;
|
||||||
_InitializingRTB = false;
|
_InitializingRTB = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user