From 2c712c3dacaeae6aaaf4bb9321ad1bcda60c7c46 Mon Sep 17 00:00:00 2001 From: Chris Bowditch Date: Thu, 4 Aug 2005 08:41:07 +0000 Subject: [PATCH] Submitted by Manual Mall in bugzilla 36008 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227322 13f79535-47bb-0310-9956-ffa450edef68 --- .../testcases/letter-spacing1.xml | 59 +++++++++++++++++++ .../testcases/letter-spacing2.xml | 59 +++++++++++++++++++ .../testcases/letter-spacing3.xml | 58 ++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 test/layoutengine/testcases/letter-spacing1.xml create mode 100644 test/layoutengine/testcases/letter-spacing2.xml create mode 100644 test/layoutengine/testcases/letter-spacing3.xml diff --git a/test/layoutengine/testcases/letter-spacing1.xml b/test/layoutengine/testcases/letter-spacing1.xml new file mode 100644 index 000000000..ef9992f55 --- /dev/null +++ b/test/layoutengine/testcases/letter-spacing1.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks block level letter-spacing. +

+
+ + + + + + + + + + Next block has no letter-spacing property: + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="normal": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="0pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="2pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + + + + + + +
diff --git a/test/layoutengine/testcases/letter-spacing2.xml b/test/layoutengine/testcases/letter-spacing2.xml new file mode 100644 index 000000000..97826807b --- /dev/null +++ b/test/layoutengine/testcases/letter-spacing2.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks block level letter-spacing on justified blocks. +

+
+ + + + + + + + + + Next block has no letter-spacing property: + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="normal": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="0pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="2pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + + + + + + +
diff --git a/test/layoutengine/testcases/letter-spacing3.xml b/test/layoutengine/testcases/letter-spacing3.xml new file mode 100644 index 000000000..21c7c3ccf --- /dev/null +++ b/test/layoutengine/testcases/letter-spacing3.xml @@ -0,0 +1,58 @@ + + + + + +

+ This test checks inline level letter-spacing. +

+
+ + + + + + + + + + In all the following tests the <fo:inline> is wrappped around the + first and last characters of the block and this section of text: + glyph-areas stacked with no extra space between the allocation-rectangles + Next inline has letter-spacing="normal": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next inline has letter-spacing="0pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next inline has letter-spacing="2pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next inline has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + + + + + + +
-- 2.39.5