Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

kerning_1_on.xml 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 kerning.
  21. </p>
  22. </info>
  23. <cfg>
  24. <base14kerning>true</base14kerning>
  25. </cfg>
  26. <fo>
  27. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  28. <fo:layout-master-set>
  29. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
  30. <fo:region-body/>
  31. </fo:simple-page-master>
  32. </fo:layout-master-set>
  33. <fo:page-sequence master-reference="normal" font-family="sans-serif">
  34. <fo:flow flow-name="xsl-region-body">
  35. <fo:block>
  36. <fo:block><fo:inline>VAVAV</fo:inline> text-text Hello World.</fo:block>
  37. </fo:block>
  38. <fo:block letter-spacing="1pt">
  39. <fo:block><fo:inline>VAVAV</fo:inline> text-text Hello World.</fo:block>
  40. </fo:block>
  41. <fo:block word-spacing="5pt">
  42. <fo:block><fo:inline>VAVAV</fo:inline> text-text Hello World.</fo:block>
  43. </fo:block>
  44. <fo:block letter-spacing="1pt" word-spacing="5pt">
  45. <fo:block><fo:inline>VAVAV</fo:inline> text-text Hello World.</fo:block>
  46. </fo:block>
  47. </fo:flow>
  48. </fo:page-sequence>
  49. </fo:root>
  50. </fo>
  51. <checks>
  52. <eval expected="36420" xpath="//flow/block[1]/block[1]/lineArea/inlineparent/@ipd"/>
  53. <eval expected="0" xpath="//flow/block[1]/block[1]/lineArea/inlineparent/text/word/@offset"/>
  54. <eval expected="0 -960 -840 -960 -840" xpath="//flow/block[1]/block[1]/lineArea/inlineparent/text/word/@letter-adjust"/>
  55. <eval expected="40420" xpath="//flow/block[2]/block[1]/lineArea/inlineparent/@ipd"/>
  56. <eval expected="1000" xpath="//flow/block[2]/block[1]/lineArea/inlineparent/text/@tlsadjust"/>
  57. <eval expected="0" xpath="//flow/block[2]/block[1]/lineArea/inlineparent/text/word/@offset"/>
  58. <eval expected="0 -960 -840 -960 -840" xpath="//flow/block[2]/block[1]/lineArea/inlineparent/text/word/@letter-adjust"/>
  59. </checks>
  60. <if-checks xmlns:if="http://xmlgraphics.apache.org/fop/intermediate">
  61. <eval expected="VAVAV" xpath="//if:text[1]"/>
  62. <eval expected="0" xpath="//if:text[1]/@x"/>
  63. <eval expected="10266" xpath="//if:text[1]/@y"/>
  64. <eval expected="0 -960 -840 -960 -840" xpath="//if:text[1]/@dx"/>
  65. <eval expected=" text-text Hello World." xpath="//if:text[2]"/>
  66. <eval expected="36420" xpath="//if:text[2]/@x"/>
  67. <eval expected="10266" xpath="//if:text[2]/@y"/>
  68. <true xpath="not(//if:text[2]/@letter-spacing)"/>
  69. <true xpath="not(//if:text[2]/@word-spacing)"/>
  70. <eval expected="0 0 0 -360 0 0 0 0 -360 0 0 0 0 0 0 0 0 0 -360 0 180" xpath="//if:text[2]/@dx"/>
  71. <eval expected="VAVAV" xpath="//if:text[3]"/>
  72. <eval expected="0" xpath="//if:text[3]/@x"/>
  73. <eval expected="24666" xpath="//if:text[3]/@y"/>
  74. <eval expected="1000" xpath="//if:text[3]/@letter-spacing"/>
  75. <true xpath="not(//if:text[3]/@word-spacing)"/>
  76. <eval expected="0 -960 -840 -960 -840" xpath="//if:text[3]/@dx"/>
  77. <eval expected=" text-text Hello World." xpath="//if:text[4]"/>
  78. <eval expected="40420" xpath="//if:text[4]/@x"/>
  79. <eval expected="24666" xpath="//if:text[4]/@y"/>
  80. <eval expected="1000" xpath="//if:text[4]/@letter-spacing"/>
  81. <true xpath="not(//if:text[3]/@word-spacing)"/>
  82. <eval expected="0 0 0 -360 0 0 0 0 -360 0 0 0 0 0 0 0 0 0 -360 0 180" xpath="//if:text[4]/@dx"/>
  83. <eval expected="VAVAV" xpath="//if:text[5]"/>
  84. <eval expected="0" xpath="//if:text[5]/@x"/>
  85. <eval expected="39066" xpath="//if:text[5]/@y"/>
  86. <true xpath="not(//if:text[5]/@letter-spacing)"/>
  87. <eval expected="5000" xpath="//if:text[5]/@word-spacing"/>
  88. <eval expected="0 -960 -840 -960 -840" xpath="//if:text[5]/@dx"/>
  89. <eval expected=" text-text Hello World." xpath="//if:text[6]"/>
  90. <eval expected="36420" xpath="//if:text[6]/@x"/>
  91. <eval expected="39066" xpath="//if:text[6]/@y"/>
  92. <true xpath="not(//if:text[5]/@letter-spacing)"/>
  93. <eval expected="5000" xpath="//if:text[6]/@word-spacing"/>
  94. <eval expected="0 0 0 -360 0 0 0 0 -360 0 0 0 0 0 0 0 0 0 -360 0 180" xpath="//if:text[4]/@dx"/>
  95. <eval expected="VAVAV" xpath="//if:text[7]"/>
  96. <eval expected="0" xpath="//if:text[7]/@x"/>
  97. <eval expected="53466" xpath="//if:text[7]/@y"/>
  98. <eval expected="1000" xpath="//if:text[7]/@letter-spacing"/>
  99. <eval expected="3000" xpath="//if:text[7]/@word-spacing"/> <!-- TODO Not sure that's correct! -->
  100. <eval expected="0 -960 -840 -960 -840" xpath="//if:text[7]/@dx"/>
  101. <eval expected=" text-text Hello World." xpath="//if:text[8]"/>
  102. <eval expected="40420" xpath="//if:text[8]/@x"/>
  103. <eval expected="53466" xpath="//if:text[8]/@y"/>
  104. <eval expected="1000" xpath="//if:text[8]/@letter-spacing"/>
  105. <eval expected="3000" xpath="//if:text[8]/@word-spacing"/> <!-- TODO Not sure that's correct! -->
  106. <eval expected="0 0 0 -360 0 0 0 0 -360 0 0 0 0 0 0 0 0 0 -360 0 180" xpath="//if:text[8]/@dx"/>
  107. </if-checks>
  108. </testcase>