160 lines
9.0 KiB
XML
160 lines
9.0 KiB
XML
<?xml version="1.0" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
|
|
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
|
|
|
|
<!-- ========================================================================= -->
|
|
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
|
|
<!-- -->
|
|
<!-- This software is published under the terms of the Apache Software License -->
|
|
<!-- version 1.1, a copy of which has been included with this distribution in -->
|
|
<!-- the LICENSE file. -->
|
|
<!-- ========================================================================= -->
|
|
|
|
<!-- ========================================================================= -->
|
|
<!-- <text> styled with a list of font families, must -->
|
|
<!-- choose which font renders which glyph -->
|
|
<!-- Also, matches SVG font by weight and other style -->
|
|
<!-- properties if possible. -->
|
|
<!-- -->
|
|
<!-- @author bella.robinson@cmis.csiro.au -->
|
|
<!-- @version $Id: fontChoice.svg,v 1.1.1.1 2001-06-10 01:46:39 edburns%acm.org Exp $ -->
|
|
<!-- ========================================================================= -->
|
|
<?xml-stylesheet type="text/css" href="test.css" ?>
|
|
|
|
<svg id="body" width="450" height="500" viewBox="0 0 450 500">
|
|
<title>SVGFont - font selection test</title>
|
|
|
|
<style type="text/css"><![CDATA[
|
|
|
|
]]></style>
|
|
|
|
<g id="content">
|
|
|
|
<text class="title" x="50%" y="40">Font Selection Test</text>
|
|
|
|
<defs>
|
|
|
|
<!-- ============================= -->
|
|
<!-- SVG Font Definitions -->
|
|
<!-- ============================= -->
|
|
|
|
|
|
|
|
<font horiz-adv-x="524">
|
|
<font-face
|
|
font-family="Radiation"
|
|
font-weight="normal"
|
|
font-style="normal"
|
|
units-per-em="1000"
|
|
panose-1="0 0 4 0 0 0 0 0 0 0"
|
|
ascent="900"
|
|
descent="-405"
|
|
alphabetic="0"/>
|
|
<missing-glyph horiz-adv-x="500"
|
|
d="M63 0V800H438V0H63zM125 63H375V738H125V63z"/>
|
|
<glyph unicode="a" glyph-name="a" horiz-adv-x="683"
|
|
d="M388 360L343 268Q328 277 311 277Q295 277 281 269L236 362Q271 379 311 379
|
|
Q352 379 388 360zM476 210Q474 125 404 77L343 160Q374 179 374 214L476 210z
|
|
M348 214Q348 199 337 188T311 177Q295 177 285 188T274 214Q274 229 284 240
|
|
T311 251Q326 251 337 240T348 214zM278 160L218 77Q147 125 145 210L248 214
|
|
Q248 179 278 160zM431 -16Q375 -45 311 -45Q201 -45 124 34T46 223
|
|
Q46 334 123 412T311 490Q375 490 431 461V497H614V-40H431V-16zM496 214
|
|
Q496 290 442 343T311 397Q235 397 180 344T125 214Q125 138 180 85T311 31
|
|
Q387 31 441 84T496 214z"/>
|
|
<glyph unicode="d" glyph-name="d" horiz-adv-x="675"
|
|
d="M388 360L343 268Q328 277 311 277Q295 277 281 269L236 362Q271 379 311 379
|
|
Q352 379 388 360zM476 210Q474 125 404 77L343 160Q374 179 374 214L476 210z
|
|
M348 214Q348 199 337 188T311 177Q295 177 285 188T274 214Q274 229 284 240
|
|
T311 251Q326 251 337 240T348 214zM278 160L218 77Q147 125 145 210L248 214
|
|
Q248 179 278 160zM431 -16Q375 -45 311 -45Q201 -45 124 34T46 223
|
|
Q46 334 123 412T311 490Q375 490 431 461V724H614V-40H431V-16zM496 214
|
|
Q496 290 442 343T311 397Q235 397 180 344T125 214Q125 138 180 85T311 31
|
|
Q387 31 441 84T496 214z"/>
|
|
<glyph unicode="o" glyph-name="o" horiz-adv-x="614"
|
|
d="M388 360L343 268Q328 277 311 277Q295 277 281 269L236 362Q271 379 311 379
|
|
Q352 379 388 360zM476 210Q474 125 404 77L343 160Q374 179 374 214L476 210z
|
|
M348 214Q348 199 337 188T311 177Q295 177 285 188T274 214Q274 229 284 240
|
|
T311 251Q326 251 337 240T348 214zM278 160L218 77Q147 125 145 210L248 214
|
|
Q248 179 278 160zM46 223Q46 334 123 412T311 490Q421 490 498 412T576 223
|
|
Q576 113 499 34T311 -45Q201 -45 124 34T46 223zM496 214Q496 290 442 343
|
|
T311 397Q235 397 180 344T125 214Q125 138 180 85T311 31Q387 31 441 84
|
|
T496 214z"/>
|
|
</font>
|
|
|
|
<font horiz-adv-x="524">
|
|
<font-face
|
|
font-family="Radiation"
|
|
font-weight="bold"
|
|
font-style="normal"
|
|
units-per-em="1000"
|
|
panose-1="0 0 4 0 0 0 0 0 0 0"
|
|
ascent="900"
|
|
descent="-405"
|
|
alphabetic="0"/>
|
|
<missing-glyph horiz-adv-x="500"
|
|
d="M63 0V800H438V0H63zM125 63H375V738H125V63z"/>
|
|
<glyph unicode="a" glyph-name="a" horiz-adv-x="683">
|
|
<path style="stroke-width:50; stroke:black;fill:red"
|
|
d="M388 360L343 268Q328 277 311 277Q295 277 281 269L236 362Q271 379 311 379
|
|
Q352 379 388 360zM476 210Q474 125 404 77L343 160Q374 179 374 214L476 210z
|
|
M348 214Q348 199 337 188T311 177Q295 177 285 188T274 214Q274 229 284 240
|
|
T311 251Q326 251 337 240T348 214zM278 160L218 77Q147 125 145 210L248 214
|
|
Q248 179 278 160zM431 -16Q375 -45 311 -45Q201 -45 124 34T46 223
|
|
Q46 334 123 412T311 490Q375 490 431 461V497H614V-40H431V-16zM496 214
|
|
Q496 290 442 343T311 397Q235 397 180 344T125 214Q125 138 180 85T311 31
|
|
Q387 31 441 84T496 214z"/>
|
|
</glyph>
|
|
<glyph unicode="d" glyph-name="d" horiz-adv-x="675">
|
|
<path style="stroke-width:50;stroke:black;fill:red"
|
|
d="M388 360L343 268Q328 277 311 277Q295 277 281 269L236 362Q271 379 311 379
|
|
Q352 379 388 360zM476 210Q474 125 404 77L343 160Q374 179 374 214L476 210z
|
|
M348 214Q348 199 337 188T311 177Q295 177 285 188T274 214Q274 229 284 240
|
|
T311 251Q326 251 337 240T348 214zM278 160L218 77Q147 125 145 210L248 214
|
|
Q248 179 278 160zM431 -16Q375 -45 311 -45Q201 -45 124 34T46 223
|
|
Q46 334 123 412T311 490Q375 490 431 461V724H614V-40H431V-16zM496 214
|
|
Q496 290 442 343T311 397Q235 397 180 344T125 214Q125 138 180 85T311 31
|
|
Q387 31 441 84T496 214z"/>
|
|
</glyph>
|
|
<glyph unicode="o" glyph-name="o" horiz-adv-x="614">
|
|
<path style="stroke-width:50;stroke:black;fill:red"
|
|
d="M388 360L343 268Q328 277 311 277Q295 277 281 269L236 362Q271 379 311 379
|
|
Q352 379 388 360zM476 210Q474 125 404 77L343 160Q374 179 374 214L476 210z
|
|
M348 214Q348 199 337 188T311 177Q295 177 285 188T274 214Q274 229 284 240
|
|
T311 251Q326 251 337 240T348 214zM278 160L218 77Q147 125 145 210L248 214
|
|
Q248 179 278 160zM46 223Q46 334 123 412T311 490Q421 490 498 412T576 223
|
|
Q576 113 499 34T311 -45Q201 -45 124 34T46 223zM496 214Q496 290 442 343
|
|
T311 397Q235 397 180 344T125 214Q125 138 180 85T311 31Q387 31 441 84
|
|
T496 214z"/>
|
|
</glyph>
|
|
</font>
|
|
|
|
|
|
</defs>
|
|
|
|
<!-- The characters 'a', 'd' and 'o' should use the SVG font Radiation, -->
|
|
<!-- the others should use Arial -->
|
|
|
|
<text x="100" y="150" font-family="Radiation, Arial, sans-serif" font-size="30">Radiation</text>
|
|
|
|
|
|
<!-- The characters 'a', 'd' and 'o' should use the bold version of Radiation -->
|
|
<!-- These letters should have a black outline and be filled red -->
|
|
|
|
<text x="100" y="200" font-family="Radiation, Arial, sans-serif" font-size="30"
|
|
font-weight="bold">Bold Radiation</text>
|
|
|
|
<text x="100" y="300" font-family="Arial, Radiation, sans-serif" font-size="30" >Arial</text>
|
|
|
|
<text x="100" y="350" font-family="Radiation, Arial, sans-serif" font-size="30"
|
|
font-style="italic" font-weight="bold">Bold and Italic Arial</text>
|
|
|
|
|
|
</g>
|
|
|
|
<!-- ============================================================= -->
|
|
<!-- Batik sample mark -->
|
|
<!-- ============================================================= -->
|
|
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
|
|
|
|
</svg>
|