diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-13 17:14:53 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-13 17:19:57 +0000 |
commit | e3746c66929f4f038d1dee58b4fa222fb3c31951 (patch) | |
tree | e0665a5f244949e9b936e659698287f72c94c004 /include | |
parent | 7c24813fe911e908450e22ec14922952db72dce9 (diff) |
vcl: Create accessor and mutator for builtin font flag in FontMetric
Accessor and mutator created for builtin font flag, removed the
existing bit field.
See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.
Unit tests
- check to ensure that can set builtin font flag
- check equality operator on FontMetric after setting builtin font
flag
Change-Id: Iac3f4270f86d10f9dcd0bb6e3951c0e983a4f22f
Reviewed-on: https://gerrit.libreoffice.org/21414
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/metric.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/metric.hxx b/include/vcl/metric.hxx index f3de0183bb3c..7b3694d54cd5 100644 --- a/include/vcl/metric.hxx +++ b/include/vcl/metric.hxx @@ -56,9 +56,11 @@ public: bool IsScalable() const; bool IsFullstopCentered() const; + bool IsBuiltInFont() const; void SetScalableFlag(bool); void SetFullstopCenteredFlag(bool); + void SetBuiltInFontFlag(bool); FontMetric& operator=( const FontMetric& rMetric ); bool operator==( const FontMetric& rMetric ) const; |