| 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 of font-face element and @font-face rule. --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ====================================================================== --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
|
| 31 |
<svg width="450" height="500" viewBox="0 0 450 500" |
| 32 |
xmlns="http://www.w3.org/2000/svg" |
| 33 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 34 |
|
| 35 |
<style type="text/css"><![CDATA[ |
| 36 |
@font-face { font-family: "CSS Batik SVGFont"; |
| 37 |
src: url(batikFont.svg#Batik); } |
| 38 |
|
| 39 |
@font-face { font-family: "CSS Batik TrueType"; |
| 40 |
src: url(../../resources/ttf/glb12.ttf); } |
| 41 |
|
| 42 |
@font-face { font-family: "CSS Batik LCL"; |
| 43 |
src: 'Courier', 'Courier New', url(batikFont.svg#Batik); } |
| 44 |
|
| 45 |
@font-face { font-family: "CSS Batik FB"; |
| 46 |
src: 'No Font', url(batikFont.svg#Batik); } |
| 47 |
@font-face { font-family: "CSS Batik FB2"; |
| 48 |
src: url(badLink.svg#Batik), url(badLink.ttf), 'Courier', 'Courier New'; } |
| 49 |
]]></style> |
| 50 |
|
| 51 |
<defs> |
| 52 |
<font-face font-family="SVG Batik SVGFont"> |
| 53 |
<font-face-src> |
| 54 |
<font-face-uri xlink:href="batikFont.svg#Batik"/> |
| 55 |
</font-face-src> |
| 56 |
</font-face> |
| 57 |
|
| 58 |
<font-face font-family="SVG Batik TrueType"> |
| 59 |
<font-face-src> |
| 60 |
<font-face-uri xlink:href="../../resources/ttf/glb12.ttf"/> |
| 61 |
</font-face-src> |
| 62 |
</font-face> |
| 63 |
|
| 64 |
<font-face font-family="SVG Batik LCL"> |
| 65 |
<font-face-src> |
| 66 |
<font-face-name name="Courier"/> |
| 67 |
<font-face-name name="Courier New"/> |
| 68 |
<font-face-uri xlink:href="batikFont.svg#Batik"/> |
| 69 |
</font-face-src> |
| 70 |
</font-face> |
| 71 |
|
| 72 |
<font-face font-family="SVG Batik FB"> |
| 73 |
<font-face-src> |
| 74 |
<font-face-name name="NoFont"/> |
| 75 |
<font-face-uri xlink:href="batikFont.svg#Batik"/> |
| 76 |
</font-face-src> |
| 77 |
</font-face> |
| 78 |
|
| 79 |
<font-face font-family="SVG Batik FB2"> |
| 80 |
<font-face-src> |
| 81 |
<font-face-uri xlink:href="badLink.svg#Batik"/> |
| 82 |
<font-face-uri xlink:href="badLink.ttf"/> |
| 83 |
<font-face-name name="Courier"/> |
| 84 |
<font-face-name name="Courier New"/> |
| 85 |
</font-face-src> |
| 86 |
</font-face> |
| 87 |
</defs> |
| 88 |
|
| 89 |
<title><font-face> and @font-face test</title> |
| 90 |
<text class="title" x="50%" y="40" |
| 91 |
><font-face> and @font-face test</text> |
| 92 |
|
| 93 |
<g id="content"> |
| 94 |
<text x="40" y="100" font-family="'SVG Batik SVGFont'" font-size="20" |
| 95 |
>SVG Batik Batik</text> |
| 96 |
<text x="240" y="100" font-family="'CSS Batik SVGFont'" font-size="20" |
| 97 |
>CSS Batik Batik</text> |
| 98 |
|
| 99 |
<text x="40" y="150" font-family="'SVG Batik TrueType'" font-size="20" |
| 100 |
>SVG Batik Batik</text> |
| 101 |
<text x="240" y="150" font-family="'CSS Batik TrueType'" font-size="20" |
| 102 |
>CSS Batik Batik</text> |
| 103 |
|
| 104 |
<text x="40" y="200" font-family="'SVG Batik LCL'" font-size="20" |
| 105 |
>SVG Batik Batik</text> |
| 106 |
<text x="240" y="200" font-family="'CSS Batik LCL'" font-size="20" |
| 107 |
>CSS Batik Batik</text> |
| 108 |
|
| 109 |
<text x="40" y="250" font-family="'SVG Batik FB'" font-size="20" |
| 110 |
>SVG Batik Batik</text> |
| 111 |
<text x="240" y="250" font-family="'CSS Batik FB'" font-size="20" |
| 112 |
>CSS Batik Batik</text> |
| 113 |
|
| 114 |
<text x="40" y="300" font-family="'SVG Batik FB2'" font-size="20" |
| 115 |
>SVG Batik Batik</text> |
| 116 |
<text x="240" y="300" font-family="'CSS Batik FB2'" font-size="20" |
| 117 |
>CSS Batik Batik</text> |
| 118 |
</g> |
| 119 |
|
| 120 |
<!-- ============================================================= --> |
| 121 |
<!-- Batik sample mark --> |
| 122 |
<!-- ============================================================= --> |
| 123 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 124 |
</svg> |