diff options
-rw-r--r-- | vcl/source/font/fontattributes.cxx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/vcl/source/font/fontattributes.cxx b/vcl/source/font/fontattributes.cxx index be3ab68bbaa1..49060f01ee53 100644 --- a/vcl/source/font/fontattributes.cxx +++ b/vcl/source/font/fontattributes.cxx @@ -93,7 +93,18 @@ bool FontAttributes::CompareDeviceIndependentFontAttributes(const FontAttributes } FontAttributes::FontAttributes() - : mnWidth ( 0 ) + : meWeight(WEIGHT_DONTKNOW) + , meItalic(ITALIC_DONTKNOW) + , meFamily(FAMILY_DONTKNOW) + , mePitch(PITCH_DONTKNOW) + , meWidthType(WIDTH_DONTKNOW) + , mbSymbolFlag(false) + , mnQuality(0) + , mbOrientation(false) + , mbDevice(false) + , mbSubsettable(false) + , mbEmbeddable(false) + , mnWidth ( 0 ) , mnOrientation( 0 ) , mnAscent( 0 ) , mnDescent( 0 ) @@ -136,7 +147,18 @@ FontAttributes::FontAttributes() } FontAttributes::FontAttributes( const FontSelectPattern& rFontSelData ) - : mnWidth ( rFontSelData.mnWidth ) + : meWeight(WEIGHT_DONTKNOW) + , meItalic(ITALIC_DONTKNOW) + , meFamily(FAMILY_DONTKNOW) + , mePitch(PITCH_DONTKNOW) + , meWidthType(WIDTH_DONTKNOW) + , mbSymbolFlag(false) + , mnQuality(0) + , mbOrientation(false) + , mbDevice(false) + , mbSubsettable(false) + , mbEmbeddable(false) + , mnWidth ( rFontSelData.mnWidth ) , mnOrientation( (short)(rFontSelData.mnOrientation) ) , mnAscent( 0 ) , mnDescent( 0 ) |