You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

inline_letter-spacing.xml 3.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <testcase>
  18. <info>
  19. <p>
  20. This test checks inline level letter-spacing.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block>In all the following tests the &lt;fo:inline&gt; is wrappped around the
  33. first and last characters of the block and this section of text:
  34. glyph-areas stacked with no extra space between the allocation-rectangles</fo:block>
  35. <fo:block>Next inline has letter-spacing="normal":</fo:block>
  36. <fo:block><fo:inline letter-spacing="normal">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
  37. <fo:inline letter-spacing="normal">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
  38. of the glyph-areas<fo:inline letter-spacing="normal">.</fo:inline></fo:block>
  39. <fo:block>Next inline has letter-spacing="0pt":</fo:block>
  40. <fo:block><fo:inline letter-spacing="0pt">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
  41. <fo:inline letter-spacing="0pt">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
  42. of the glyph-areas<fo:inline letter-spacing="0pt">.</fo:inline></fo:block>
  43. <fo:block>Next inline has letter-spacing="2pt":</fo:block>
  44. <fo:block><fo:inline letter-spacing="2pt">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
  45. <fo:inline letter-spacing="2pt">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
  46. of the glyph-areas<fo:inline letter-spacing="2pt">.</fo:inline></fo:block>
  47. <fo:block>Next inline has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt":</fo:block>
  48. <fo:block><fo:inline letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
  49. <fo:inline letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
  50. of the glyph-areas<fo:inline letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt">.</fo:inline></fo:block>
  51. </fo:flow>
  52. </fo:page-sequence>
  53. </fo:root>
  54. </fo>
  55. <checks>
  56. </checks>
  57. </testcase>