Revision control
Copy as Markdown
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%"
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--======================================================================-->
reviewer="ATE, CM" owner="CL" desc="test path commands in glyphs" status="accepted"
approved="yes"
version="$Revision: 1.3 $" testname="$RCSfile: fonts-glyph-203-t.svg,v $">
<p>
Test that all of the SVG path commands are accepted for defining glyphs. The upper,
black text must be a reflection of the lower, colored glyph shapes.
</p>
<p>
The letter A uses L commands, the letter H uses H and V commands, and
the letter B uses cubic beziers. The letter C uses a mix of quadratic beziers and vertical lines.
</p>
</d:OperatorScript>
</SVGTestCase>
<title xml:id="test-title">$RCSfile: fonts-glyph-203-t.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../images/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g xml:id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<defs>
<font xml:id="curvy" horiz-adv-x="450">
<font-face font-family="SVGPath" font-weight="500" units-per-em="1000" ascent="800"
descent="-200"/>
<missing-glyph/>
<glyph unicode="A" d="M0,0 L100,600 L300,600 L400,0 L300,0 L 200,200 L 100,0 z
M 100,200 L300,200 L 200,500 z"/>
<glyph unicode="B" horiz-adv-x="350"
d="M0,0 c0,200 0,400 0,600 c33,0 66,0 100,0 c 300,0 300,-300 0,-300
c 300,0 300,-300 0,-300 z
M 100,100 c 140,0 140,100, 0,100 z
M 100,400 c 140,0 140,100, 0,100 z"/>
<glyph unicode="C" d="M100,100 Q 0,300 100,500 Q 250,600 400,500
v-100 Q300,450 200,400 Q 150,300 200,200 Q 300,150 400,200
v-100 Q250,0 100,100 z" />
<glyph unicode="H"
d="M0,0 v600 h100 v-250 h200 v250 h100 v-600 h-100 v250 h-200 v-250 z"/>
</font>
</defs>
<text x="50" y="150" font-family="SVGPath" font-size="150">BACH</text>
<g transform="translate (50,160)">
<g transform="scale(0.15)" fill="green">
<path
d="M0,0 c0,200 0,400 0,600 c33,0 66,0 100,0 c 300,0 300,-300 0,-300
c 300,0 300,-300 0,-300 z
M 100,100 c 140,0 140,100, 0,100 z
M 100,400 c 140,0 140,100, 0,100 z"
/>
</g>
</g>
<g transform="translate (102.5,160)">
<g transform="scale(0.15)" fill="blue">
<path d="M0,0 L100,600 L300,600 L400,0 L300,0 L 200,200 L 100,0 z
M 100,200 L300,200 L 200,500 z"/>
</g>
</g>
<g transform="translate (170,160)">
<g transform="scale(0.15)" fill="maroon">
<path d="M100,100 Q 0,300 100,500 Q 250,600 400,500
v-100 Q300,450 200,400 Q 150,300 200,200 Q 300,150 400,200
v-100 Q250,0 100,100 z"/>
</g>
</g>
<g transform="translate (237.5,160)">
<g transform="scale(0.15)" fill="rgb(153, 50, 204)">
<path d="M0,0 v600 h100 v-250 h200 v250 h100 v-600 h-100 v250 h-200 v-250 z"/>
</g>
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text xml:id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.3 $</text>
</g>
<rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
<!-- comment out this watermark once the test is approved -->
<!--<g xml:id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>