ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Text > text-altGlyph-BE-07


File: text-altGlyph-BE-07
Author: Jon Ferraiolo
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
altGlyphxlink:href |
altGlyphDefid |
defs
descid |
fonthoriz-adv-x | id |
font-facealphabetic | ascent | cap-height | descent | font-family | font-style | font-weight | hanging | ideographic | mathematical | units-per-em | x-height |
font-face-namename |
font-face-src
gid | style |
glyphd | horiz-adv-x | id | unicode |
glyphRefxlink:href |
missing-glyph
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | y |
titleid |

Source

<svg id="svg-root" width="450" height="450" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
     <title id="test-title">text-altGlyph-BE-07</title>
     <desc id="test-desc">Test 'altGlyph' facilities and many-to-many chars to glyphs.</desc>
     <g id="test-body-content" style="stroke-miterlimit:4;">
          <text style="font-family:Helvetica;font-size:14;text-anchor:middle;" x="225" y="30">Test 'altGlyph' facilities and many-to-many chars to glyphs</text>
          <defs>
               <font id="Font1" horiz-adv-x="5">
                    <font-face font-family="HappySad" font-weight="bold" font-style="normal" units-per-em="8" cap-height="8" x-height="4" ascent="8" descent="2" alphabetic="0" mathematical="4" ideographic="-2" hanging="8">
                         <font-face-src>
                              <font-face-name name="HappySad"/>
                         </font-face-src>
                    </font-face>
                    <missing-glyph>
                         <path d="M1,3h2v2h-2z"/>
                    </missing-glyph>
                    <glyph id="A1" d="M0,0 L2,8 L4,0 M0,4 C1,3 3,3 4,4"/>
                    <glyph id="H1" d="M0,0 V8 M4,0 V8 M0,4 C1,3 3,3 4,4"/>
                    <glyph id="P1" d="M0,0 V8 H2 C3,8 4,7 4,6 V4 M0,4 C1,3 3,3 4,4"/>
                    <glyph id="S1" d="M0,4 V6 C0,7 1,8 2,8 C3,8 4,7 4,6 M4,4 V2 C4,1 3,0 2,0 C1,0 0,1 0,2 M0,4 C1,3 3,3 4,4"/>
                    <glyph id="Y1" d="M0,8 V4 M4,8 V4 M2,4 V0 M0,4 C1,3 3,3 4,4"/>
                    <glyph id="A2" d="M0,0 L2,8 L4,0 M0,4 C1,5 3,5 4,4"/>
                    <glyph id="H2" d="M0,0 V8 M4,0 V8 M0,4 C1,5 3,5 4,4"/>
                    <glyph id="P2" d="M0,0 V8 H2 C3,8 4,7 4,6 V4 M0,4 C1,5 3,5 4,4"/>
                    <glyph id="S2" d="M0,4 V6 C0,7 1,8 2,8 C3,8 4,7 4,6 M4,4 V2 C4,1 3,0 2,0 C1,0 0,1 0,2 M0,4 C1,5 3,5 4,4"/>
                    <glyph id="Y2" d="M0,8 V4 M4,8 V4 M2,4 V0 M0,4 C1,5 3,5 4,4"/>
                    <glyph id="SS" unicode="SS" horiz-adv-x="6" d=" M0,4 V6 C0,7 0,8 1,8 C2,8 2,7 2,6 M2,4 V2 C2,1 2,0 1,0 C0,0 0,1 0,2 M3,4 V6 C3,7 3,8 4,8 C5,8 5,7 5,6 M5,4 V2 C5,1 5,0 4,0 C3,0 3,1 3,2 M0,4 H5 "/>
                    <glyph id="A" unicode="A" d="M0,0 L2,8 L4,0 M0,4 H4"/>
                    <glyph id="D" unicode="D" d="M0,0 V8 C3,8 4,7 4,4 C4,1 3,0 0,0z"/>
                    <glyph id="S" unicode="S" d="M0,4 V6 C0,7 1,8 2,8 C3,8 4,7 4,6 M4,4 V2 C4,1 3,0 2,0 C1,0 0,1 0,2 M0,4 H4"/>
                    <glyph id="Y" unicode="Y" d="M0,8 V4 M4,8 V4 M2,4 V0 M0,4 H4"/>
               </font>
               <altGlyphDef id="Afrown">
                    <glyphRef xlink:href="#A2"/>
               </altGlyphDef>
               <altGlyphDef id="Asmile">
                    <glyphRef xlink:href="#A1"/>
               </altGlyphDef>
               <altGlyphDef id="Hsmile">
                    <glyphRef xlink:href="#H1"/>
               </altGlyphDef>
               <altGlyphDef id="Psmile">
                    <glyphRef xlink:href="#P1"/>
               </altGlyphDef>
               <altGlyphDef id="Sfrown">
                    <glyphRef xlink:href="#S2"/>
               </altGlyphDef>
               <altGlyphDef id="Ysmile">
                    <glyphRef xlink:href="#Y1"/>
               </altGlyphDef>
          </defs>
          <g style="font-family:HappySad;font-size:80;fill:none;stroke-width:5;">
               <text x="50" y="150" style="stroke:red;">
                    <altGlyph xlink:href="#Hsmile">H</altGlyph>
                    <altGlyph xlink:href="#Asmile">A</altGlyph>
                    <altGlyph xlink:href="#Psmile">P</altGlyph>
                    <altGlyph xlink:href="#Psmile">P</altGlyph>
                    <altGlyph xlink:href="#Ysmile">Y</altGlyph>
               </text>
               <text x="50" y="250" style="stroke:green;">
                    <altGlyph xlink:href="#Sfrown">S</altGlyph>
                    <altGlyph xlink:href="#Afrown">A</altGlyph>D
               </text>
               <text x="50" y="350" style="stroke:blue;">SASSY</text>
          </g>
     </g>
     <g id="test-legend" style="fill:black;font-family:Helvetica;font-size:10;">
          <rect x="10" y="390" width="275" height="50" style="fill:none;stroke:#000000;"/>
          <path style="fill:none;stroke:#000000;" d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
          <text x="25" y="401">Scalable Vector Graphics (SVG) Conformance Suite</text>
          <a xlink:href="copyright-documents-19990405.html">
               <text x="12" y="437" style="fill:blue;">Copyright 2000 W3C. All Rights Reserved.</text>
          </a>
          <text style="font-size:12;" x="35" y="420">text-altGlyph-BE-07</text>
          <text style="font-size:10;" x="210" y="417">$Revision: 1.1 $</text>
          <text style="font-size:10;" x="210" y="435">Release 2.0</text>
          <rect id="test-frame" x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
     </g>
</svg>



Sponsored links: Domain Names, VoIP Internettelefonie, DSL, SDSL, ADSL, UNLIMITED Web Hosting by HostDepartment, conference call service, answering service