From f8ffe2ff7a654052e0e2d6cb168841025bcc2f25 Mon Sep 17 00:00:00 2001 From: Chris Sherlock <chris.sherlock79@gmail.com> Date: Thu, 14 Jan 2016 07:48:48 +1100 Subject: 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> --- vcl/inc/impfont.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vcl/inc/impfont.hxx') 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; } -- cgit