Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.
|
Run the test. No interaction required.
The rendered picture (left) should match the reference image (right), except as noted in the Test Description. In particular, the 'textLength' constraint must be satisfied precisely, as it is used in combinations over the text element and tspan subelements of the text element. The length of text that are not specified with a textLength should be adjusted to ensure the specified textLength regions are enforced.
Test viewer capibility to handle basic use of 'textLength' and 'lengthAdjust' attributes, when applied to 'text' elements and 'tspan' subelements.
There are four sub-tests. Each sub-test consists of the same sequence of text: "Core text tspan 1 tspan 2", where "Core text" is the value of the <text/> element, and "tspan 1" and "tspan 2" are the values of two <tspan/> child elements of the <text/> element. The core text is one font size, the tspan 1 child has larger font size, and the tspan 2 a smaller italic font. This same set of fonts is used in each sample. The blue text elements are to indicate on which elements an explicit textLength attribute has been set.
There are olive green boxes around the overall <text/> element affected by textLength specifications which are of the length of the total textLength specified, and should be filled left to right by the text. There are orange boxes where <tspan/> elements have textLenght specified, that represent the extents of the tspan and are of width equal to the tspan textLength.
Test 1 The first test applies a single textLength on only the <text/> element which should apply to the length of the contents of the <text/> and the two child <tspan/> as a whole. The total sentence should fill the box, being stretched uniformly.
Test 2 The second test applies no textLength to the root <text/>, but applies a textLength to only the first <tspan/>. The tspan 1 text should thus be of the specified length and cover the box. As the viewer renders the "core text" at its default font size, the start of the box/tspan 1 can vary slightly.
Test 3 The third test applies a textLength to the <text/> element, and to the second <tspan/> element. This specifies an overall length for the entire line, as well as a specific length for the tspan 2 section. "tspan 2" should resize to fit its constraint requirement, and "Core text tspan 1" should uniformly resize to, with "tspan 2" meet the overall lenght set on the <text/> element.
Test 4 The fourth test applies a textLength to the <text/> element (which governs the length of the total sentence length) and explicit ones applied to the two <tspan/> child elements, which specify the lenght of the specific tspans. The tspan 1 and tspan 2 elements should be independently sized to meet thier individual testLength requirements, and then all of the elements, "Core text," "tspan 1," and "tspan 2" uniformly to meet the <text/> elements overal textLength reqirement.
Test 5 The fifth test is a variation of test 1, with the change that there is no text content (empty) for the main <text/> element; all of the actual text is only contained in the tspan children, but the main text element still specifies the overall textLength extents. The text "tspan 1" and "tspan 2" should be adjusted to fill the box.
Test 6 The sixth test is a variation of test 2, with the change that there is no text content (empty) for the main <text/> element; all of the actual text is only contained in the tspan children. The first <tspan/> specifies its textLength extents. The text "tspan 1" should fill its box.