diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-14 07:48:48 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-13 20:52:40 +0000 |
commit | f8ffe2ff7a654052e0e2d6cb168841025bcc2f25 (patch) | |
tree | 8fa9ecea82cdc680558a42a41c89b25f9d2bf400 /vcl/inc/impfont.hxx | |
parent | 398491236015721e067273657ad3016634b5a166 (diff) |
vcl: Create accessor and mutator for ascent and descent in FontMetric
Accessor and mutator created for ascent and descent spacing in
FontMetric.
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 font ascent and descent spacing
- check equality operator on FontMetric after setting both ascent
and descent font spacing
Change-Id: I714363b14bdc61ddfa37a619fe4b03f4e4e96f7a
Reviewed-on: https://gerrit.libreoffice.org/21458
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/inc/impfont.hxx')
-rw-r--r-- | vcl/inc/impfont.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx index 0b9577a2b801..182f4e830810 100644 --- a/vcl/inc/impfont.hxx +++ b/vcl/inc/impfont.hxx @@ -123,6 +123,8 @@ public: long GetSlant() const { return mnSlant; } long GetBulletOffset() const { return mnBulletOffset; } + void SetAscent( long nAscent ) { mnAscent = nAscent; } + void SetDescent( long nDescent ) { mnDescent = nDescent; } void SetInternalLeading( long nIntLeading ) { mnIntLeading = nIntLeading; } void SetExternalLeading( long nExtLeading ) { mnExtLeading = nExtLeading; } |