138 lines
6.0 KiB
XML
138 lines
6.0 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: textLayout.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</text>
|
|
|
|
<text x="50%" y="15%" text-anchor="middle" font-size="2%">Explicit Glyph Positioning</text>
|
|
|
|
<g>
|
|
<text><tspan x="40,60,80,105,125,140" y="110">sample</tspan></text>
|
|
<text x="40" y="125" class="Caption">tspan x="40,60,80,105,125,140"</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="185" y="110">sample</text>
|
|
<text x="185" y="125" class="Caption">Serif, default spacing</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="290" y="110"><tspan dx="0,10,10,10,10,10">sample</tspan></text>
|
|
<text x="290" y="125" class="Caption">x="175" dx="0,10,10,10,10,10"
|
|
</text>
|
|
</g>
|
|
|
|
<text x="50%" y="30%" text-anchor="middle" font-size="2%">Letter Spacing Adjustment and Explicit Length Specification</text>
|
|
|
|
<g>
|
|
<text x="40" y="180" textLength="120">sample</text>
|
|
<text x="40" y="195" class="Caption">textLength="120"</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="185" y="180" textLength="70">sample</text>
|
|
<text x="185" y="195" class="Caption">textLength="70"</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="290" y="180" kerning="10">sample</text>
|
|
<text x="290" y="195" class="Caption">kerning="10"</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="40" y="225" textLength="120" lengthAdjust="spacingAndGlyphs">sample</text>
|
|
<text x="40" y="240" class="Caption">textLength="120",
|
|
<tspan x="40" dy="10">lengthAdjust="spacingAndGlyphs"</tspan></text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="185" y="225" textLength="70" lengthAdjust="spacingAndGlyphs">sample</text>
|
|
<text x="185" y="240" class="Caption">textLength="70" <tspan x="185" dy="10">lengthAdjust="spacingAndGlyphs"</tspan></text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="290" y="225" textLength="120" lengthAdjust="spacingAndGlyphs" kerning="10">sample</text>
|
|
<text x="290" y="240" class="Caption">textLength="120",kerning="10"</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="40" y="275" letter-spacing="0.3em">sample</text>
|
|
<text x="40" y="290" class="Caption">letter-spacing="0.3em"</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="185" y="275" letter-spacing="-3">sample</text>
|
|
<text x="185" y="290" class="Caption">letter-spacing="-3"</text>
|
|
</g>
|
|
|
|
<g>
|
|
<text x="290" y="275" letter-spacing="10">sample</text>
|
|
<text x="290" y="290" class="Caption">letter-spacing="10"</text>
|
|
</g>
|
|
|
|
<text x="50%" y="64%" text-anchor="middle" font-size="2%">Word Spacing Adjustment</text>
|
|
|
|
<g font-size="3%">
|
|
<text x="40" y="350" textLength="350" word-spacing="3em">Wide separation between words</text>
|
|
<text x="40" y="365" class="Caption">textLength="350" word-spacing="3em"</text>
|
|
</g>
|
|
|
|
<g font-size="3%">
|
|
<text x="40" y="395" textLength="350" word-spacing="-5">Narrow separation between words</text>
|
|
<text x="40" y="410" class="Caption">textLength="350" word-spacing="-5"</text>
|
|
</g>
|
|
|
|
<g font-size="3%">
|
|
<text x="40" y="440" textLength="350" lengthAdjust="spacingAndGlyphs" word-spacing="-5">Narrow separation between words</text>
|
|
<text x="40" y="455" class="Caption">textLength="350" lengthAdjust="spacingAndGlyphs" word-spacing="-5"</text>
|
|
</g>
|
|
</g>
|
|
|
|
<!-- ============================================================= -->
|
|
<!-- Batik sample mark -->
|
|
<!-- ============================================================= -->
|
|
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
|
|
|
|
</svg>
|