diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-20 23:41:06 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-20 16:34:56 +0000 |
commit | 137c440ccddbc9b41b8a8997820b7c0253b4de64 (patch) | |
tree | d5374d2420c24f9259cc50cd7b184104ffa54585 /include | |
parent | ad236a3e1b456531ea758c2a3c5075860d823109 (diff) |
vcl: add built in font property functions to Font class
Added setter for built-in font property and IsBuiltInFontFlag to
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: I61ce33fe6ffb31be22c68ce8a94d0886ebdc8fcf
Reviewed-on: https://gerrit.libreoffice.org/21627
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/font.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx index 19acdc6bc515..51ce742e742d 100644 --- a/include/vcl/font.hxx +++ b/include/vcl/font.hxx @@ -85,10 +85,14 @@ public: // Device dependent functions int GetQuality() const; + bool IsBuiltInFont() const; + void SetQuality(int); void IncreaseQualityBy(int); void DecreaseQualityBy(int); + void SetBuiltInFontFlag(bool); + // setting the color on the font is obsolete, the only remaining // valid use is for keeping backward compatibility with old MetaFiles const Color& GetColor() const; |