| 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 (2)</text> |
| 54 |
|
| 55 |
<text x="50%" y="15%" text-anchor="middle" font-size="10">Baseline Properties</text> |
| 56 |
|
| 57 |
<g text-anchor="middle"> |
| 58 |
<text x="225" y="110" font-size="15"><tspan baseline-shift="super" fill="blue">super</tspan> and <tspan baseline-shift="sub" fill="green">sub</tspan>scripts</text> |
| 59 |
<text x="225" y="135" class="Caption">baseline-shift="super"/baseline-shift="sub"</text> |
| 60 |
</g> |
| 61 |
|
| 62 |
<g text-anchor="middle"> |
| 63 |
<text x="225" y="165" font-size="15"><tspan baseline-shift="+20%" fill="blue">positive</tspan> and <tspan baseline-shift="-20%" fill="green">negative </tspan>baseline-shift</text> |
| 64 |
<text x="225" y="180" class="Caption">baseline-shift="+/-20%"</text> |
| 65 |
</g> |
| 66 |
<text x="50%" y="42%" text-anchor="middle" font-size="10">Multi-line Text Selection</text> |
| 67 |
|
| 68 |
<text x="50%" y="45%" text-anchor="middle" font-size="7.5" font-style="italic">(Try selecting the following text regions)</text> |
| 69 |
|
| 70 |
<text text-anchor="start" font-size="15"> |
| 71 |
<tspan x="120" y="50%">Text selections can span multiple</tspan> |
| 72 |
<tspan x="120" y="53%">lines via <tspan> elements.</tspan> |
| 73 |
</text> |
| 74 |
|
| 75 |
<text text-anchor="start" fill="blue" font-size="20" transform="translate(90, 360)"> |
| 76 |
<tspan x="0 10 25 50 75 90 100 90 75 50 25 10 0" |
| 77 |
y="0 -25 -40 -50 -40 -25 0 25 40 50 40 25 10 0">Text-circle.</tspan> |
| 78 |
</text> |
| 79 |
|
| 80 |
<text fill="green" font-size="20" transform="translate(250, 320)" |
| 81 |
x="0 20 40 60 80 80 80 80 80 60 40 20 0 0 0 0" |
| 82 |
y="0 0 0 0 0 20 40 60 80 80 80 80 80 60 40 20"> |
| 83 |
Text-in-a-square |
| 84 |
</text> |
| 85 |
|
| 86 |
<text font-size="15" x="225" y="450" text-anchor="middle">Text with <tspan rotate="10 -10 10 -10 10 -10 10" fill="red">rotated</tspan> glyphs</text> |
| 87 |
<text font-size="15" x="225" y="465" text-anchor="middle" rotate="15">More rotated glyphs</text> |
| 88 |
|
| 89 |
</g> |
| 90 |
|
| 91 |
<!-- ============================================================= --> |
| 92 |
<!-- Batik sample mark --> |
| 93 |
<!-- ============================================================= --> |
| 94 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 95 |
|
| 96 |
</svg> |