Logic to keep looking (inheritance) if a blank value is found
Dtermine font style from format xml Fixed a bug - AnnotationTypes in Annotation Search Add defaults for user configuration data
This commit is contained in:
@@ -72,7 +72,20 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
// TODO: eventually want styles
|
||||
if (_WindowsFont == _WindowsFont) _WindowsFont = new Font(Family, (float)Size);
|
||||
if (_WindowsFont == null)
|
||||
{
|
||||
FontStyle style = FontStyle.Regular;
|
||||
if (Style != E_Style.None)
|
||||
{
|
||||
if ((Style & E_Style.Bold) != 0)
|
||||
style |= FontStyle.Bold;
|
||||
if ((Style & E_Style.Italics) != 0)
|
||||
style |= FontStyle.Italic;
|
||||
if ((Style & E_Style.Underline) != 0)
|
||||
style |= FontStyle.Underline;
|
||||
}
|
||||
_WindowsFont = new Font(Family, (float)Size, style);
|
||||
}
|
||||
return _WindowsFont;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user