B2019-155 Show a tick mark (‘) when displaying a hard space in the Step Editor (but not in the current edit window) for all fonts, proportional and fixed spaced.

This commit is contained in:
John Jenko 2019-10-16 15:53:54 +00:00
parent a2dd696309
commit 4efec4cfdd

View File

@ -639,10 +639,9 @@ namespace Volian.Controls.Library
// (Proportional) font, the hardspace appeared to be 2 spaces (really it was showing the space as the widest // (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 // 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. // would be. This is only used for display, printing works.
if (_MyItemInfo.FormatStepData != null && _MyItemInfo.FormatStepData.Font.FontIsProportional()) //B2019-155 Hard spaces were displace as a square box for non-proportional fonts.
Rtf = Rtf.Replace(@"\'a0", "'"); // To fix this, we removed the check for a proportional font and now replace the hard space with a "'" mark for all fonts
else Rtf = Rtf.Replace(@"\'a0", "'");
Rtf = Rtf.Replace(@"\'a0", @"\u1?");
} }
OrigRTF = Rtf; OrigRTF = Rtf;
_InitializingRTB = false; _InitializingRTB = false;