Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / batik / text / textLayout.svg
blobb5bb69d1cf82932edc852767f87d256ffa033abc
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">
5 <!--
7 Copyright 2001-2002 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
21 -->
22 <!-- ========================================================================= -->
23 <!-- Test description here -->
24 <!-- -->
25 <!-- @author bill.haneman@ireland.sun.com -->
26 <!-- @version $Id: textLayout.svg,v 1.6 2004/08/18 07:12:21 vhardy Exp $ -->
27 <!-- ========================================================================= -->
28 <?xml-stylesheet type="text/css" href="../resources/test.css" ?>
29 <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">
30 <title>Text Layout Properties</title>
32 <!-- ============================================================= -->
33 <!-- Test content -->
34 <!-- ============================================================= -->
36 <defs>
37 <style type="text/css"><![CDATA[
38 .Caption { font-size: 8px; font-family: dialog; font-weight: normal;
39 font-style: normal; stroke: none; stroke-width: 0;
40 fill: black } ]]>
41 </style>
43 <style type="text/css"><![CDATA[
44 .SerifPlain { font-size: 24px; font-family: Serif; font-weight: normal;
45 font-style: normal; stroke: none; stroke-width: 0;
46 fill: black } ]]>
47 </style>
49 <text x="0" y="0" text-anchor="start" id="sample">sample</text>
51 </defs>
53 <g id="testContent" text-anchor="start" font-size="30" class="SerifPlain">
54 <text text-anchor="middle" class="title" x="50%" y="10%" font-size="15" >
55 Text Layout Properties</text>
57 <text x="50%" y="15%" text-anchor="middle" font-size="10">Explicit Glyph Positioning</text>
59 <g>
60 <text><tspan x="40,60,80,105,125,140" y="110">sample</tspan></text>
61 <text x="40" y="125" class="Caption">tspan x="40,60,80,105,125,140"</text>
62 </g>
64 <g>
65 <text x="185" y="110">sample</text>
66 <text x="185" y="125" class="Caption">Serif, default spacing</text>
67 </g>
69 <g>
70 <text x="290" y="110"><tspan dx="0,10,10,10,10,10">sample</tspan></text>
71 <text x="290" y="125" class="Caption">x="175" dx="0,10,10,10,10,10"
72 </text>
73 </g>
75 <text x="50%" y="30%" text-anchor="middle" font-size="10">Letter Spacing Adjustment and Explicit Length Specification</text>
77 <g>
78 <text x="40" y="180" textLength="120">sample</text>
79 <text x="40" y="195" class="Caption">textLength="120"</text>
80 </g>
82 <g>
83 <text x="185" y="180" textLength="70">sample</text>
84 <text x="185" y="195" class="Caption">textLength="70"</text>
85 </g>
87 <g>
88 <text x="40" y="225" textLength="120" lengthAdjust="spacingAndGlyphs">sample</text>
89 <text x="40" y="240" class="Caption">textLength="120",
90 <tspan x="40" dy="10">lengthAdjust="spacingAndGlyphs"</tspan></text>
91 </g>
93 <g>
94 <text x="185" y="225" textLength="70" lengthAdjust="spacingAndGlyphs">sample</text>
95 <text x="185" y="240" class="Caption">textLength="70" <tspan x="185" dy="10">lengthAdjust="spacingAndGlyphs"</tspan></text>
96 </g>
98 <g>
99 <text x="40" y="275" letter-spacing="0.3em">sample</text>
100 <text x="40" y="290" class="Caption">letter-spacing="0.3em"</text>
101 </g>
104 <text x="185" y="275" letter-spacing="-3">sample</text>
105 <text x="185" y="290" class="Caption">letter-spacing="-3"</text>
106 </g>
109 <text x="290" y="275" letter-spacing="10">sample</text>
110 <text x="290" y="290" class="Caption">letter-spacing="10"</text>
111 </g>
113 <text x="50%" y="64%" text-anchor="middle" font-size="10">Word Spacing Adjustment</text>
115 <g font-size="15">
116 <text x="40" y="350" textLength="350" word-spacing="3em">Wide separation between words</text>
117 <text x="40" y="365" class="Caption">textLength="350" word-spacing="3em"</text>
118 </g>
120 <g font-size="15">
121 <text x="40" y="395" textLength="350" word-spacing="-5">Narrow separation between words</text>
122 <text x="40" y="410" class="Caption">textLength="350" word-spacing="-5"</text>
123 </g>
125 <g font-size="15">
126 <text x="40" y="440" textLength="350" lengthAdjust="spacingAndGlyphs" word-spacing="-5">Narrow separation between words</text>
127 <text x="40" y="455" class="Caption">textLength="350" lengthAdjust="spacingAndGlyphs" word-spacing="-5"</text>
128 </g>
129 </g>
131 <!-- ============================================================= -->
132 <!-- Batik sample mark -->
133 <!-- ============================================================= -->
134 <use xlink:href="../resources/batikLogo.svg#Batik_Tag_Box" />
136 </svg>