blob: 55068d84704479468e05c7c9c23c6f3bf50d65bc [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- ====================================================================== -->
<!-- Tests various text on a path -->
<!-- -->
<!-- @author bella.robinson@cmis.csiro.au -->
<!-- @version $Id$ -->
<!-- ====================================================================== -->
<?xml-stylesheet type="text/css" href="extension.css" ?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
id="body" width="450" height="500" viewBox="0 0 450 500">
<title>Test of Text vertical-align.</title>
<g id="content" >
<text class="title" x="50%" y="40">Test of Text vertical-align</text>
<g font-family="serif" transform="translate(0,60)">
<g fill="rgb(220,220,255)">
<rect x="12.5" y="0" width="125" height="36"/>
<rect x="162.5" y="0" width="125" height="36"/>
<rect x="312.5" y="0" width="125" height="36"/>
</g>
<flowText xmlns="http://xml.apache.org/batik/ext"
font-size="24" xml:space="preserve">
<flowRegion vertical-align="top">
<rect x="12.5" y="0" width="125" height="36"/>
</flowRegion>
<flowRegion vertical-align="middle">
<rect x="162.5" y="0" width="125" height="36"/>
</flowRegion>
<flowRegion vertical-align="bottom">
<rect x="312.5" y="0" width="125" height="36"/>
</flowRegion>
<flowDiv>
<flowRegionBreak justification="middle"
>Try top</flowRegionBreak>
<flowRegionBreak justification="middle"
>Try middle</flowRegionBreak>
<flowRegionBreak justification="middle"
>Try bottom</flowRegionBreak>
</flowDiv>
</flowText>
</g>
<g font-family="serif" transform="translate(0,120)" >
<g fill="rgb(220,220,255)">
<rect x="12.5" y="0" width="125" height="36"/>
<rect x="12.5" y="40" width="125" height="36"/>
<rect x="162.5" y="0" width="125" height="36"/>
<rect x="162.5" y="40" width="125" height="36"/>
<rect x="312.5" y="0" width="125" height="36"/>
<rect x="312.5" y="40" width="125" height="36"/>
</g>
<flowText xmlns="http://xml.apache.org/batik/ext"
font-size="24" xml:space="preserve">
<flowRegion vertical-align="top">
<rect x="12.5" y="0" width="125" height="36"/>
<rect x="12.5" y="40" width="125" height="36"/>
</flowRegion>
<flowRegion vertical-align="middle">
<rect x="162.5" y="0" width="125" height="36"/>
<rect x="162.5" y="40" width="125" height="36"/>
</flowRegion>
<flowRegion vertical-align="bottom">
<rect x="312.5" y="0" width="125" height="36"/>
<rect x="312.5" y="40" width="125" height="36"/>
</flowRegion>
<flowDiv>
<flowRegionBreak justification="middle"
>Try top two lines</flowRegionBreak>
<flowRegionBreak justification="middle"
>Middle two lines</flowRegionBreak>
<flowRegionBreak justification="middle"
>Bottom two lines</flowRegionBreak>
</flowDiv>
</flowText>
</g>
<g font-family="serif" transform="translate(0,220)" >
<g fill="rgb(220,220,255)">
<rect x="12.5" y="0" width="125" height="72"/>
<rect x="162.5" y="0" width="125" height="72"/>
<rect x="312.5" y="0" width="125" height="72"/>
</g>
<flowText xmlns="http://xml.apache.org/batik/ext"
font-size="24" xml:space="preserve">
<flowRegion vertical-align="top">
<rect x="12.5" y="0" width="125" height="72"/>
</flowRegion>
<flowRegion vertical-align="middle">
<rect x="162.5" y="0" width="125" height="72"/>
</flowRegion>
<flowRegion vertical-align="bottom">
<rect x="312.5" y="0" width="125" height="72"/>
</flowRegion>
<flowDiv>
<flowRegionBreak justification="middle"
>Try top two lines</flowRegionBreak>
<flowRegionBreak justification="middle"
>Middle two lines</flowRegionBreak>
<flowRegionBreak justification="middle"
>Bottom two lines</flowRegionBreak>
</flowDiv>
</flowText>
</g>
<g font-family="serif" transform="translate(0,320)" >
<g fill="rgb(220,220,255)">
<rect x="12.5" y="0" width="125" height="72"/>
<rect x="162.5" y="0" width="125" height="72"/>
<rect x="312.5" y="0" width="125" height="72"/>
</g>
<flowText xmlns="http://xml.apache.org/batik/ext"
font-size="24" xml:space="preserve">
<flowRegion vertical-align="top">
<rect x="12.5" y="0" width="125" height="72"/>
</flowRegion>
<flowRegion vertical-align="middle">
<rect x="162.5" y="0" width="125" height="72"/>
</flowRegion>
<flowRegion vertical-align="bottom">
<rect x="312.5" y="0" width="125" height="72"/>
</flowRegion>
<flowDiv>
<flowPara justification="middle"
>Try top</flowPara>
<flowRegionBreak justification="middle"
>two lines</flowRegionBreak>
<flowPara justification="middle"
>Middle</flowPara>
<flowRegionBreak justification="middle"
>two lines</flowRegionBreak>
<flowPara justification="middle"
>Bottom</flowPara>
<flowRegionBreak justification="middle"
>two lines</flowRegionBreak>
</flowDiv>
</flowText>
</g>
</g>
<!-- check a totally empty flow text element. -->
<g font-family="serif" transform="translate(0,405)" >
<g fill="rgb(220,220,255)">
<rect x="12.5" y="0" width="125" height="72"/>
</g>
<flowText xmlns="http://xml.apache.org/batik/ext"
font-size="24" xml:space="preserve">
<flowRegion vertical-align="top">
<rect x="12.5" y="0" width="125" height="72"/>
</flowRegion>
<flowPara/>
</flowText>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
</svg>