diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-13 18:33:13 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-13 19:50:18 +0000 |
commit | 08bbdaa2f9e3a2b7cfee6838ea6d9f0096495812 (patch) | |
tree | 01b38be11e15249e76ff2b5c54cdfdce6c7224d0 /vcl/inc | |
parent | fb45376fea3e3d0ff0fc2af56d67efad1e7751cf (diff) |
vcl: Create accessor and mutator for int and ext leading in FontMetric
Accessor and mutator created for external and internal leading space 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 external and leading space
- check equality operator on FontMetric after setting both external
and internal leading space
- enhanced tests to also check the inequality operator
Change-Id: I973970dd0b0631c5eca3e89039dce57ac3a3eb63
Reviewed-on: https://gerrit.libreoffice.org/21454
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/impfont.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx index 2988f4cc77c0..0b9577a2b801 100644 --- a/vcl/inc/impfont.hxx +++ b/vcl/inc/impfont.hxx @@ -117,12 +117,15 @@ public: long GetAscent() const { return mnAscent; } long GetDescent() const { return mnDescent; } - long GetIntLeading() const { return mnIntLeading; } - long GetExtLeading() const { return mnExtLeading; } + long GetInternalLeading() const { return mnIntLeading; } + long GetExternalLeading() const { return mnExtLeading; } long GetLineHeight() const { return mnLineHeight; } long GetSlant() const { return mnSlant; } long GetBulletOffset() const { return mnBulletOffset; } + void SetInternalLeading( long nIntLeading ) { mnIntLeading = nIntLeading; } + void SetExternalLeading( long nExtLeading ) { mnExtLeading = nExtLeading; } + bool IsScalable() const { return mbScalableFont; } bool IsFullstopCentered() const { return mbFullstopCentered; } bool IsBuiltInFont() const { return mbDevice; } |