|
| 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 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +--> |
| 18 | +<testcase> |
| 19 | + <info> |
| 20 | + <p> |
| 21 | + This test checks block level letter-spacing when having white-spaces. |
| 22 | + </p> |
| 23 | + </info> |
| 24 | + <fo> |
| 25 | + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> |
| 26 | + <fo:layout-master-set> |
| 27 | + <fo:simple-page-master master-name="A4" page-height="297mm" page-width="210mm" margin="20mm"> |
| 28 | + <fo:region-body/> |
| 29 | + </fo:simple-page-master> |
| 30 | + </fo:layout-master-set> |
| 31 | + <fo:page-sequence master-reference="A4"> |
| 32 | + <fo:flow flow-name="xsl-region-body"> |
| 33 | + <fo:block letter-spacing="0.5pt" white-space="pre">A A A A A A A A x<fo:inline font-size="70%" vertical-align="top">2</fo:inline></fo:block> |
| 34 | + <fo:block letter-spacing="0.5pt" white-space="pre">A A A A x<fo:inline font-size="70%" vertical-align="top">2</fo:inline></fo:block> |
| 35 | + <fo:block letter-spacing="0.5pt" white-space="pre"> x<fo:inline font-size="70%" vertical-align="top">2</fo:inline></fo:block> |
| 36 | + </fo:flow> |
| 37 | + </fo:page-sequence> |
| 38 | + </fo:root> |
| 39 | + </fo> |
| 40 | + <checks> |
| 41 | + <eval expected="105220" xpath="//flow/block[1]/lineArea/text/@ipd"/> |
| 42 | + <eval expected="86548" xpath="//flow/block[2]/lineArea/text/@ipd"/> |
| 43 | + <eval expected="68376" xpath="//flow/block[3]/lineArea/text/@ipd"/> |
| 44 | + </checks> |
| 45 | +</testcase> |
0 commit comments