1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
<?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.
-->
<!-- ========================================================================= -->
<!-- Test description here -->
<!-- -->
<!-- @author bill.haneman@ireland.sun.com -->
<!-- @version $Id$ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 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>
</defs>
<g id="testContent" text-anchor="start" font-size="30" class="SerifPlain">
<text text-anchor="middle" class="title" x="50%" y="10%" font-size="15" >
Text Layout Properties</text>
<text x="50%" y="15%" text-anchor="middle" font-size="10">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="10">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="10">Word Spacing Adjustment</text>
<g font-size="15">
<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="15">
<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="15">
<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>
|