summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-28 12:08:43 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-28 12:08:43 +1100
commiteea67332da825306abd3e49450850abb323eb91c (patch)
tree9eb6f637b4816642932a4ac0333475a5168fab32 /vcl/source/font
parent2b0669eec0d86e973a7d8def8744c522bbf8af8b (diff)
vcl: add in copy constructor for FontAttributes
Change-Id: I0627ee8ee699abd2afc87639c87f8c17f42c6e70
Diffstat (limited to 'vcl/source/font')
-rw-r--r--vcl/source/font/fontattributes.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcl/source/font/fontattributes.cxx b/vcl/source/font/fontattributes.cxx
index b777227f9a0c..4f5c9e4bfcce 100644
--- a/vcl/source/font/fontattributes.cxx
+++ b/vcl/source/font/fontattributes.cxx
@@ -37,6 +37,24 @@ FontAttributes::FontAttributes()
mbEmbeddable ( false )
{}
+FontAttributes::FontAttributes( const FontAttributes& rFontAttributes ) :
+ maFamilyName( rFontAttributes.maFamilyName ),
+ maStyleName( rFontAttributes.maStyleName ),
+ meWeight( rFontAttributes.meWeight ),
+ meFamily( rFontAttributes.meFamily ),
+ mePitch( rFontAttributes.mePitch ),
+ meWidthType( rFontAttributes.meWidthType ),
+ meItalic( rFontAttributes.meItalic ),
+ meCharSet( rFontAttributes.meCharSet ),
+ mbSymbolFlag( rFontAttributes.mbSymbolFlag ),
+ maMapNames( rFontAttributes.maMapNames ),
+ mnQuality( rFontAttributes.mnQuality ),
+ mbOrientation( rFontAttributes.mbOrientation ),
+ mbDevice( rFontAttributes.mbDevice ),
+ mbSubsettable( rFontAttributes.mbSubsettable ),
+ mbEmbeddable( rFontAttributes.mbEmbeddable )
+{}
+
bool FontAttributes::CompareDeviceIndependentFontAttributes(const FontAttributes& rOther) const
{