summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-22 15:29:27 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-22 15:41:55 +0000
commit231d5c7db8188d53c6aab441b7080d3fa1a01446 (patch)
tree01c46774d4650a283eb2cdc3a04ad4ca2f2931bd /vcl/source/font
parent3c1a343f6936f1dcefdf79a677f8c26ce29676e6 (diff)
vcl: add orientation flag property to Font class
Add getter and setter for orientation flag to the Font class. See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor and mutator for font scaling in FontMetric") for reasoning behind patch. Unit test added to vcl/qa/cppunit/font.cxx to test this flag. Change-Id: I62d5a47f870702eeac4625830dd279dd53fbcc3d Reviewed-on: https://gerrit.libreoffice.org/21696 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/source/font')
-rw-r--r--vcl/source/font/font.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx
index 554cdb4cf79c..6890ca606e08 100644
--- a/vcl/source/font/font.cxx
+++ b/vcl/source/font/font.cxx
@@ -824,6 +824,9 @@ bool Font::CanEmbed() const { return mpImplFont->CanEmbed(); }
void Font::SetEmbeddableFlag( bool bEmbeddable ) { mpImplFont->SetEmbeddableFlag( bEmbeddable ); }
bool Font::CanSubset() const { return mpImplFont->CanSubset(); }
void Font::SetSubsettableFlag( bool bSubsettable ) { mpImplFont->SetSubsettableFlag( bSubsettable ); }
+bool Font::CanRotate() const { return mpImplFont->CanRotate(); }
+void Font::SetOrientationFlag( bool bCanRotate ) { mpImplFont->SetOrientationFlag( bCanRotate ); }
+
bool Font::IsOutline() const { return mpImplFont->mbOutline; }
bool Font::IsShadow() const { return mpImplFont->mbShadow; }
FontRelief Font::GetRelief() const { return mpImplFont->meRelief; }
@@ -866,6 +869,7 @@ ImplFont::ImplFont() :
mbDevice( false ),
mbEmbeddable( false ),
mbSubsettable( false ),
+ mbRotatable( false ),
mnQuality( 0 )
{}
@@ -902,6 +906,7 @@ ImplFont::ImplFont( const ImplFont& rImplFont ) :
mbDevice( rImplFont.mbDevice ),
mbEmbeddable( false ),
mbSubsettable( false ),
+ mbRotatable( rImplFont.mbRotatable ),
mnQuality( rImplFont.mnQuality )
{}