From ab6f80909877f1e14de252c456dd2acd84c43974 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Wed, 20 Jan 2016 20:47:19 +1100 Subject: vcl: add more property functions to Font Added increase and decrease quality functions to Font class, and also charset mutator and accessor function. See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor and mutator for font scaling in FontMetric") for reasoning behind patch. Unit test change in vcl/qa/cppunit/font.cxx: - enhanced to check increase and decrease quality functions Change-Id: I2f5970438f6ef1ad185163d5fdcec5bbc88912a4 Reviewed-on: https://gerrit.libreoffice.org/21622 Tested-by: Jenkins Reviewed-by: Chris Sherlock --- vcl/qa/cppunit/font.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'vcl/qa/cppunit') diff --git a/vcl/qa/cppunit/font.cxx b/vcl/qa/cppunit/font.cxx index f4fcf1892996..5649b329ba59 100644 --- a/vcl/qa/cppunit/font.cxx +++ b/vcl/qa/cppunit/font.cxx @@ -100,7 +100,13 @@ void VclFontTest::testQuality() CPPUNIT_ASSERT_EQUAL( (int)0, aFont.GetQuality() ); aFont.SetQuality( 100 ); - CPPUNIT_ASSERT_EQUAL( (int)100, aFont.GetQuality()); + CPPUNIT_ASSERT_EQUAL( (int)100, aFont.GetQuality() ); + + aFont.IncreaseQualityBy( 50 ); + CPPUNIT_ASSERT_EQUAL( (int)150, aFont.GetQuality() ); + + aFont.DecreaseQualityBy( 100 ); + CPPUNIT_ASSERT_EQUAL( (int)50, aFont.GetQuality() ); } -- cgit