| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| 3 |
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
|
| 7 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 8 |
contributor license agreements. See the NOTICE file distributed with |
| 9 |
this work for additional information regarding copyright ownership. |
| 10 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 11 |
(the "License"); you may not use this file except in compliance with |
| 12 |
the License. You may obtain a copy of the License at |
| 13 |
|
| 14 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 15 |
|
| 16 |
Unless required by applicable law or agreed to in writing, software |
| 17 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
See the License for the specific language governing permissions and |
| 20 |
limitations under the License. |
| 21 |
|
| 22 |
--> |
| 23 |
<!-- ========================================================================= --> |
| 24 |
<!-- Test description here --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
<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"> |
| 31 |
<title>Text Layout Properties</title> |
| 32 |
|
| 33 |
<!-- ============================================================= --> |
| 34 |
<!-- Test content --> |
| 35 |
<!-- ============================================================= --> |
| 36 |
|
| 37 |
<defs> |
| 38 |
<style type="text/css"><![CDATA[ |
| 39 |
.Caption { font-size: 8; font-family: dialog; font-weight: normal; |
| 40 |
font-style: normal; stroke: none; stroke-width: 0; |
| 41 |
fill: black } ]]> |
| 42 |
</style> |
| 43 |
|
| 44 |
<style type="text/css"><![CDATA[ |
| 45 |
.SerifPlain { font-size: 24; font-family: Serif; font-weight: normal; |
| 46 |
font-style: normal; stroke: none; stroke-width: 0; |
| 47 |
fill: black } ]]> |
| 48 |
</style> |
| 49 |
</defs> |
| 50 |
|
| 51 |
<g id="testContent" text-anchor="start" font-size="30" class="SerifPlain"> |
| 52 |
<text text-anchor="middle" class="title" x="50%" y="10%" font-size="15" > |
| 53 |
Text Layout Properties</text> |
| 54 |
|
| 55 |
<text x="50%" y="15%" text-anchor="middle" font-size="10">Explicit Glyph Positioning</text> |
| 56 |
|
| 57 |
<g> |
| 58 |
<text><tspan x="40,60,80,105,125,140" y="110">sample</tspan></text> |
| 59 |
<text x="40" y="125" class="Caption">tspan x="40,60,80,105,125,140"</text> |
| 60 |
</g> |
| 61 |
|
| 62 |
<g> |
| 63 |
<text x="185" y="110">sample</text> |
| 64 |
<text x="185" y="125" class="Caption">Serif, default spacing</text> |
| 65 |
</g> |
| 66 |
|
| 67 |
<g> |
| 68 |
<text x="290" y="110"><tspan dx="0,10,10,10,10,10">sample</tspan></text> |
| 69 |
<text x="290" y="125" class="Caption">x="175" dx="0,10,10,10,10,10" |
| 70 |
</text> |
| 71 |
</g> |
| 72 |
|
| 73 |
<text x="50%" y="30%" text-anchor="middle" font-size="10">Letter Spacing Adjustment and Explicit Length Specification</text> |
| 74 |
|
| 75 |
<g> |
| 76 |
<text x="40" y="180" textLength="120">sample</text> |
| 77 |
<text x="40" y="195" class="Caption">textLength="120"</text> |
| 78 |
</g> |
| 79 |
|
| 80 |
<g> |
| 81 |
<text x="185" y="180" textLength="70">sample</text> |
| 82 |
<text x="185" y="195" class="Caption">textLength="70"</text> |
| 83 |
</g> |
| 84 |
|
| 85 |
<g> |
| 86 |
<text x="290" y="180" kerning="10">sample</text> |
| 87 |
<text x="290" y="195" class="Caption">kerning="10"</text> |
| 88 |
</g> |
| 89 |
|
| 90 |
<g> |
| 91 |
<text x="40" y="225" textLength="120" lengthAdjust="spacingAndGlyphs">sample</text> |
| 92 |
<text x="40" y="240" class="Caption">textLength="120", |
| 93 |
<tspan x="40" dy="10">lengthAdjust="spacingAndGlyphs"</tspan></text> |
| 94 |
</g> |
| 95 |
|
| 96 |
<g> |
| 97 |
<text x="185" y="225" textLength="70" lengthAdjust="spacingAndGlyphs">sample</text> |
| 98 |
<text x="185" y="240" class="Caption">textLength="70" <tspan x="185" dy="10">lengthAdjust="spacingAndGlyphs"</tspan></text> |
| 99 |
</g> |
| 100 |
|
| 101 |
<g> |
| 102 |
<text x="290" y="225" textLength="120" lengthAdjust="spacingAndGlyphs" kerning="10">sample</text> |
| 103 |
<text x="290" y="240" class="Caption">textLength="120",kerning="10"</text> |
| 104 |
</g> |
| 105 |
|
| 106 |
<g> |
| 107 |
<text x="40" y="275" letter-spacing="0.3em">sample</text> |
| 108 |
<text x="40" y="290" class="Caption">letter-spacing="0.3em"</text> |
| 109 |
</g> |
| 110 |
|
| 111 |
<g> |
| 112 |
<text x="185" y="275" letter-spacing="-3">sample</text> |
| 113 |
<text x="185" y="290" class="Caption">letter-spacing="-3"</text> |
| 114 |
</g> |
| 115 |
|
| 116 |
<g> |
| 117 |
<text x="290" y="275" letter-spacing="10">sample</text> |
| 118 |
<text x="290" y="290" class="Caption">letter-spacing="10"</text> |
| 119 |
</g> |
| 120 |
|
| 121 |
<text x="50%" y="64%" text-anchor="middle" font-size="10">Word Spacing Adjustment</text> |
| 122 |
|
| 123 |
<g font-size="15"> |
| 124 |
<text x="40" y="350" textLength="350" word-spacing="3em">Wide separation between words</text> |
| 125 |
<text x="40" y="365" class="Caption">textLength="350" word-spacing="3em"</text> |
| 126 |
</g> |
| 127 |
|
| 128 |
<g font-size="15"> |
| 129 |
<text x="40" y="395" textLength="350" word-spacing="-5">Narrow separation between words</text> |
| 130 |
<text x="40" y="410" class="Caption">textLength="350" word-spacing="-5"</text> |
| 131 |
</g> |
| 132 |
|
| 133 |
<g font-size="15"> |
| 134 |
<text x="40" y="440" textLength="350" lengthAdjust="spacingAndGlyphs" word-spacing="-5">Narrow separation between words</text> |
| 135 |
<text x="40" y="455" class="Caption">textLength="350" lengthAdjust="spacingAndGlyphs" word-spacing="-5"</text> |
| 136 |
</g> |
| 137 |
</g> |
| 138 |
|
| 139 |
<!-- ============================================================= --> |
| 140 |
<!-- Batik sample mark --> |
| 141 |
<!-- ============================================================= --> |
| 142 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 143 |
|
| 144 |
</svg> |