| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- ====================================================================== --> |
| <!-- Test of font-face element and @font-face rule. --> |
| <!-- --> |
| <!-- @author thomas.deweese@kodak.com --> |
| <!-- @version $Id$ --> |
| <!-- ====================================================================== --> |
| <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| |
| <svg width="450" height="500" viewBox="0 0 450 500" |
| xmlns="http://www.w3.org/2000/svg" |
| xmlns:xlink="http://www.w3.org/1999/xlink"> |
| |
| <style type="text/css"><![CDATA[ |
| @font-face { font-family: "CSS Batik SVGFont"; |
| src: url(batikFont.svg#Batik); } |
| |
| @font-face { font-family: "CSS Batik TrueType"; |
| src: url(../../resources/ttf/glb12.ttf); } |
| |
| @font-face { font-family: "CSS Batik LCL"; |
| src: 'Courier', 'Courier New', url(batikFont.svg#Batik); } |
| |
| @font-face { font-family: "CSS Batik FB"; |
| src: 'No Font', url(batikFont.svg#Batik); } |
| @font-face { font-family: "CSS Batik FB2"; |
| src: url(badLink.svg#Batik), url(badLink.ttf), 'Courier', 'Courier New'; } |
| ]]></style> |
| |
| <defs> |
| <font-face font-family="SVG Batik SVGFont"> |
| <font-face-src> |
| <font-face-uri xlink:href="batikFont.svg#Batik"/> |
| </font-face-src> |
| </font-face> |
| |
| <font-face font-family="SVG Batik TrueType"> |
| <font-face-src> |
| <font-face-uri xlink:href="../../resources/ttf/glb12.ttf"/> |
| </font-face-src> |
| </font-face> |
| |
| <font-face font-family="SVG Batik LCL"> |
| <font-face-src> |
| <font-face-name name="Courier"/> |
| <font-face-name name="Courier New"/> |
| <font-face-uri xlink:href="batikFont.svg#Batik"/> |
| </font-face-src> |
| </font-face> |
| |
| <font-face font-family="SVG Batik FB"> |
| <font-face-src> |
| <font-face-name name="NoFont"/> |
| <font-face-uri xlink:href="batikFont.svg#Batik"/> |
| </font-face-src> |
| </font-face> |
| |
| <font-face font-family="SVG Batik FB2"> |
| <font-face-src> |
| <font-face-uri xlink:href="badLink.svg#Batik"/> |
| <font-face-uri xlink:href="badLink.ttf"/> |
| <font-face-name name="Courier"/> |
| <font-face-name name="Courier New"/> |
| </font-face-src> |
| </font-face> |
| </defs> |
| |
| <title><font-face> and @font-face test</title> |
| <text class="title" x="50%" y="40" |
| ><font-face> and @font-face test</text> |
| |
| <g id="content"> |
| <text x="40" y="100" font-family="'SVG Batik SVGFont'" font-size="20" |
| >SVG Batik Batik</text> |
| <text x="240" y="100" font-family="'CSS Batik SVGFont'" font-size="20" |
| >CSS Batik Batik</text> |
| |
| <text x="40" y="150" font-family="'SVG Batik TrueType'" font-size="20" |
| >SVG Batik Batik</text> |
| <text x="240" y="150" font-family="'CSS Batik TrueType'" font-size="20" |
| >CSS Batik Batik</text> |
| |
| <text x="40" y="200" font-family="'SVG Batik LCL'" font-size="20" |
| >SVG Batik Batik</text> |
| <text x="240" y="200" font-family="'CSS Batik LCL'" font-size="20" |
| >CSS Batik Batik</text> |
| |
| <text x="40" y="250" font-family="'SVG Batik FB'" font-size="20" |
| >SVG Batik Batik</text> |
| <text x="240" y="250" font-family="'CSS Batik FB'" font-size="20" |
| >CSS Batik Batik</text> |
| |
| <text x="40" y="300" font-family="'SVG Batik FB2'" font-size="20" |
| >SVG Batik Batik</text> |
| <text x="240" y="300" font-family="'CSS Batik FB2'" font-size="20" |
| >CSS Batik Batik</text> |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| </svg> |