| 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 |
<!-- ====================================================================== --> |
| 25 |
<!-- Image element references an SVG file --> |
| 26 |
<!-- --> |
| 27 |
<!-- @author [email protected] --> |
| 28 |
<!-- @version $Id$ --> |
| 29 |
<!-- ====================================================================== --> |
| 30 |
|
| 31 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 32 |
|
| 33 |
<svg width="450" height="500" viewBox="0 0 450 500" |
| 34 |
xmlns="http://www.w3.org/2000/svg" |
| 35 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 36 |
|
| 37 |
<title>Test the CSS 'font' shorthand property</title> |
| 38 |
<text class="title" x="50%" y="30" |
| 39 |
>Test the CSS 'font' shorthand property</text> |
| 40 |
|
| 41 |
<style type="text/css"><![CDATA[ |
| 42 |
@font-face { font-family: "bolder"; src: "Courier" } |
| 43 |
.f1 { font: 20px Serif; } |
| 44 |
.f2 { font: 20 SanSerif; } |
| 45 |
.f3 { font: 20 times; } |
| 46 |
.f4 { font: bold 20 times; } |
| 47 |
.f5 { font: italic 20 times; } |
| 48 |
.f6 { font: bold italic 20 times; } |
| 49 |
.f7 { font: italic bold 20 times; } |
| 50 |
.f8 { font: 700 20 times; } |
| 51 |
.f9 { font: 700 small-caps 20 times; } |
| 52 |
.f10 { font: small-caps 700 20 times; } |
| 53 |
.f11 { font: small-caps 700 italic 20 times; } |
| 54 |
.f12 { font: 700 small-caps italic 20 times; } |
| 55 |
.f13 { font: small-caps italic 700 20 times; } |
| 56 |
.f14 { font: 200 "bolder"; } |
| 57 |
.f15 { font: 200 bolder; } |
| 58 |
.f16 { font: 200px bolder; } |
| 59 |
.f17 { font: bolder 200 bolder; } |
| 60 |
.f18 { font: menu; } |
| 61 |
.f19 { font: small-caption; } |
| 62 |
]]></style> |
| 63 |
|
| 64 |
<g id="testContent" font-size="8pt" font-family="sanserif"> |
| 65 |
<text x="225" y="60">default</text> |
| 66 |
<text class="f1" x="10" y="60">font: 20px Serif</text> |
| 67 |
<text class="f2" x="10" y="80">font: 20 SanSerif</text> |
| 68 |
<text class="f3" x="10" y="100">font: 20 times</text> |
| 69 |
<text class="f4" x="10" y="120">font: bold 20 times</text> |
| 70 |
<text class="f5" x="10" y="140">font: italic 20 times</text> |
| 71 |
<text class="f6" x="10" y="160">font: bold italic 20 times</text> |
| 72 |
<text class="f7" x="10" y="180">font: italic bold 20 times</text> |
| 73 |
<text class="f8" x="10" y="200">font: 200 20 times</text> |
| 74 |
<text class="f9" x="10" y="220">font: 700 small-caps 20 times</text> |
| 75 |
<text class="f10" x="10" y="240">font: small-caps 700 20 times</text> |
| 76 |
<text class="f11" x="10" y="260">font: small-caps 700 italic 20 times</text> |
| 77 |
<text class="f12" x="10" y="280">font: 700 small-caps italic 20 times</text> |
| 78 |
<text class="f13" x="10" y="300">font: small-caps italic 700 20 times</text> |
| 79 |
<g transform="scale(.1)"> |
| 80 |
<text class="f14" x="100" y="3200">font: 200 "bolder"</text> |
| 81 |
<text class="f15" x="100" y="3400">font: 200 bolder</text> |
| 82 |
<text class="f16" x="100" y="3600">font: 200px bolder</text> |
| 83 |
<text class="f17" x="100" y="3800">font: bolder 200 bolder</text> |
| 84 |
</g> |
| 85 |
<g font-weight="bold"> |
| 86 |
<text class="f5" x="10" y="400">font: italic 20 times</text> |
| 87 |
</g> |
| 88 |
<text x="200" y="400">group font-weight="bold"</text> |
| 89 |
|
| 90 |
<g font-style="italic"> |
| 91 |
<text class="f4" x="10" y="420">font: bold 20 times</text> |
| 92 |
</g> |
| 93 |
<text x="200" y="420">group font-style="italic"</text> |
| 94 |
|
| 95 |
<text class="f18" x="10" y="440">File: menu</text> |
| 96 |
<text class="f19" x="10" y="460">File: small-caption</text> |
| 97 |
</g> |
| 98 |
</svg> |