edburns%acm.org 687ec8a292 First import of the SVG pluglet. Compiles and works on win32.
git-svn-id: svn://10.0.0.236/trunk@96799 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-10 01:46:41 +00:00

81 lines
4.1 KiB
XML

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
<!-- ========================================================================= -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
<!-- -->
<!-- This software is published under the terms of the Apache Software License -->
<!-- version 1.1, a copy of which has been included with this distribution in -->
<!-- the LICENSE file. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- Test description here -->
<!-- -->
<!-- @author bill.haneman@ireland.sun.com -->
<!-- @version $Id: textLayout2.svg,v 1.1.1.1 2001-06-10 01:46:41 edburns%acm.org Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<svg width="450" height="500" viewBox="0 0 450 500">
<title>Text Layout Properties</title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<defs>
<style type="text/css"><![CDATA[
.Caption { font-size: 8; font-family: dialog; font-weight: normal;
font-style: normal; stroke: none; stroke-width: 0;
fill: black } ]]>
</style>
<style type="text/css"><![CDATA[
.SerifPlain { font-size: 24; font-family: Serif; font-weight: normal;
font-style: normal; stroke: none; stroke-width: 0;
fill: black } ]]>
</style>
<text x="0" y="0" text-anchor="start" id="sample">sample</text>
</defs>
<g id="testContent" text-anchor="start" font-size="6%" class="SerifPlain">
<text text-anchor="middle" class="title" x="50%" y="10%" font-size="3%" >
Text Layout Properties (2)</text>
<text x="50%" y="15%" text-anchor="middle" font-size="2%">Baseline Properties</text>
<g text-anchor="middle">
<text x="225" y="110" font-size="3%"><tspan baseline-shift="super" fill="blue">super</tspan> and <tspan baseline-shift="sub" fill="green">sub</tspan>scripts</text>
<text x="225" y="135" class="Caption">baseline-shift="super"/baseline-shift="sub"</text>
</g>
<g text-anchor="middle">
<text x="225" y="165" font-size="3%"><tspan baseline-shift="+20%" fill="blue">positive</tspan> and <tspan baseline-shift="-20%" fill="green">negative </tspan>baseline-shift</text>
<text x="225" y="180" class="Caption">baseline-shift="+/-20%"</text>
</g>
<text x="50%" y="47%" text-anchor="middle" font-size="2%">Multi-line Text Selection</text>
<text x="50%" y="50%" text-anchor="middle" font-size="1.5%" font-style="italic">(Try selecting the following text regions)</text>
<text text-anchor="start" font-size="3%">
<tspan x="100" y="280">Text selections can span multiple</tspan>
<tspan x="100" y="300">lines via &lt;tspan&gt; elements.</tspan>
</text>
<text text-anchor="start" fill="blue" font-size="4%" transform="translate(175, 390)">
<tspan x="0 10 25 50 75 90 100 90 75 50 25 10 0"
y="0 -25 -40 -50 -40 -25 0 25 40 50 40 25 10 0">Text-circle.</tspan>
</text>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
</svg>