diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-21 15:00:08 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-21 06:20:39 +0000 |
commit | abf04f6b0ad0dd83b4d479723144593e2f83ede0 (patch) | |
tree | 5f2e2eb0cde929743e7f199c6756b2f351e1bc9e /include/vcl/font.hxx | |
parent | 6b65a0e83c4798f117be61af91dbaebdc85e94b7 (diff) |
vcl: add embeddable font property functions to Font class
Added setter and getter for embeddable font 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: I7f4ddf09d4a122c7c335b017efcb95f1774ae0d8
Reviewed-on: https://gerrit.libreoffice.org/21650
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'include/vcl/font.hxx')
-rw-r--r-- | include/vcl/font.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx index 51ce742e742d..dc7ab9e2de50 100644 --- a/include/vcl/font.hxx +++ b/include/vcl/font.hxx @@ -86,12 +86,14 @@ public: int GetQuality() const; bool IsBuiltInFont() const; + bool CanEmbed() const; void SetQuality(int); void IncreaseQualityBy(int); void DecreaseQualityBy(int); void SetBuiltInFontFlag(bool); + void SetEmbeddableFlag(bool); // setting the color on the font is obsolete, the only remaining // valid use is for keeping backward compatibility with old MetaFiles |