summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-21 15:13:22 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-21 06:22:48 +0000
commita5372932f787534d15d4e36ee8c297f3c6ac0888 (patch)
tree026ee6e3ad21000e402bc2ecf09b8b949bff5f6a /include
parent078194f6d0ede81042f38fb687f5cc3180a48ad0 (diff)
vcl: add subsettable flag property functions to Font class
Added getter and setter for subsettable flag property 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: I2a66f1c4876698e1ffeaf260b2b43d5308b71191 Reviewed-on: https://gerrit.libreoffice.org/21651 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/font.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx
index 8cb34b6833e3..498c6a56ebe8 100644
--- a/include/vcl/font.hxx
+++ b/include/vcl/font.hxx
@@ -87,6 +87,7 @@ public:
bool IsBuiltInFont() const;
bool CanEmbed() const;
+ bool CanSubset() const;
void SetQuality(int);
void IncreaseQualityBy(int);
@@ -94,6 +95,7 @@ public:
void SetBuiltInFontFlag(bool);
void SetEmbeddableFlag(bool);
+ void SetSubsettableFlag(bool);
// setting the color on the font is obsolete, the only remaining
// valid use is for keeping backward compatibility with old MetaFiles