This commit is contained in:
@@ -203,28 +203,18 @@ namespace Volian.Controls.Library
|
||||
// return;
|
||||
//}
|
||||
_origDisplayText = vlntxt;
|
||||
#if(DEBUG)
|
||||
// Use Times New Roman for Debugging
|
||||
//Font = new Font("Times New Roman", 14, FontStyle.Regular);
|
||||
//Font = _origDisplayText.TextFont.WindowsFont;
|
||||
Font formatFont = _origDisplayText.TextFont.WindowsFont;
|
||||
Font formatFont = _origDisplayText.TextFont.WindowsFont;
|
||||
if (_MyItemInfo.IsTable || _MyItemInfo.IsFigure)
|
||||
Font = formatFont;
|
||||
else
|
||||
Font = new Font(_MyFontFamily == null ? formatFont.FontFamily : _MyFontFamily, formatFont.Size, formatFont.Style);
|
||||
//Font = new Font("Bookman Old Style", formatFont.Size, formatFont.Style);
|
||||
#elif(RELEASE)
|
||||
Font = _origDisplayText.TextFont.WindowsFont; // font defined in plant's format
|
||||
#else //DEMO
|
||||
// Comment this out for DEMO to customer
|
||||
// UN-Comment this for testing
|
||||
//Font = _origDisplayText.TextFont.WindowsFont; // font defined in plant's format
|
||||
Font formatFont = _origDisplayText.TextFont.WindowsFont;
|
||||
if (_MyItemInfo.IsTable || _MyItemInfo.IsFigure)
|
||||
Font = formatFont;
|
||||
else
|
||||
Font = new Font("Bookman Old Style", formatFont.Size, formatFont.Style);
|
||||
#endif
|
||||
{
|
||||
if (vlnStackTrace.DebugMode)
|
||||
Font = new Font(_MyFontFamily == null ? formatFont.FontFamily : _MyFontFamily, formatFont.Size, formatFont.Style);
|
||||
else
|
||||
Font = new Font("Bookman Old Style", formatFont.Size, formatFont.Style);
|
||||
// TODO: Release Mode
|
||||
//Font = _origDisplayText.TextFont.WindowsFont; // font defined in plant's format
|
||||
}
|
||||
Text = ""; // Initialize text before add text
|
||||
// IMPORTANT: SetLineSpacing must be set before Links, otherwise it
|
||||
// was confusing the 'handle' of the rtf box.
|
||||
|
Reference in New Issue
Block a user