From 65d92ff2f5df13eeb3a0f3fd3b183a59351b1593 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Mon, 4 Feb 2008 22:26:53 +0000 Subject: [PATCH] Added testcase for Bugzilla 44343 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618470 13f79535-47bb-0310-9956-ffa450edef68 --- test/fotree/testcases/font-size-test.fo | 62 +++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 test/fotree/testcases/font-size-test.fo diff --git a/test/fotree/testcases/font-size-test.fo b/test/fotree/testcases/font-size-test.fo new file mode 100644 index 000000000..a302e55e1 --- /dev/null +++ b/test/fotree/testcases/font-size-test.fo @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + Test basic inheritance + + + + Test relative unit (em). + Resolved to absolute value? + + + Test percentage resolution. + Resolved to absolute value? + + + + + Test smaller font-size. + + + Test larger font-size. + + + + + + Test smaller than a percentage font-size. + Computation (see org.apache.fop.fo.properties.FontSizePropertyMaker): + 12pt * 80% = 9,6pt (base-size) + 9,6pt < 12pt, so scale is 10/12 + 12 * 10/12 = 9,99pt, still > 9,6pt + 9,99pt * 10/12 = 8,33pt STOP + + + + + -- 2.39.5