| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="UTF-8"?> | |
| 2 <!--======================================================================--> | |
| 3 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> | |
| 4 <!--= Institute of Technology, Institut National de Recherche en =--> | |
| 5 <!--= Informatique et en Automatique, Keio University). All Rights =--> | |
| 6 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> | |
| 7 <!--======================================================================--> | |
| 8 <!-- ===================================================================== --> | |
| 9 <!-- --> | |
| 10 <!-- fonts-elem-06-t.svg --> | |
| 11 <!-- --> | |
| 12 <!-- Author : Vincent Hardy 28-01-2004 --> | |
| 13 <!-- --><!
DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SV
G/1.1/DTD/svg11-tiny.dtd"> | |
| 14 | |
| 15 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" id="svg-root" width="480" height="360" viewBox="0 0 480 360" version="1.1" ba
seProfile="tiny"> | |
| 16 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description
/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" owner="VH" revie
wer="CN" desc="validates that the font element's horiz-adv-x is used" status
="accepted" version="$Revision: 1.10 $" testname="$RCSfile: fonts-elem-06-t.svg,
v $"> | |
| 17 <OperatorScript> | |
| 18 <Paragraph> | |
| 19 This test validates that the font element's horiz-adv-x is used
as | |
| 20 the default glyph's advance when there is no glyph advance speci
fied. | |
| 21 All fonts have a units-per-em of 1000. | |
| 22 </Paragraph> | |
| 23 <Paragraph> | |
| 24 The first row shows a layout with a default adavance of 1000. | |
| 25 Glyphs have no advance so the 1000 default should be used. | |
| 26 </Paragraph> | |
| 27 <Paragraph> | |
| 28 The second row shows a layout with a default adavance of 2000. | |
| 29 Glyphs have no advance so the 2000 default should be used. | |
| 30 </Paragraph> | |
| 31 <Paragraph> | |
| 32 The last row shows a layout with a default adavance of 0. | |
| 33 Glyphs have a specified advance so the 0 default should be ignor
ed. | |
| 34 </Paragraph> | |
| 35 <Paragraph> | |
| 36 Reference blue markers show the expected glyph positions. | |
| 37 </Paragraph> | |
| 38 </OperatorScript> | |
| 39 </SVGTestCase> | |
| 40 | |
| 41 <title id="test-title">fonts-elem-01-t</title> | |
| 42 <desc id="test-desc">Basic test of embedded fonts using glyph outlines</desc
> | |
| 43 <!--======================================================================--
> | |
| 44 <!--Content of Test Case follows... =====================--
> | |
| 45 <!--======================================================================--
> | |
| 46 <g id="test-body-content"> | |
| 47 <text x="240" y="50" text-anchor="middle" font-size="30"><font> ho
riz-adv-x</text> | |
| 48 <defs> | |
| 49 <font id="advance1000" horiz-adv-x="1000"> | |
| 50 <font-face font-family="advance1000" units-per-em="1000" ascent="1000" descent="
0" alphabetic="0"/> | |
| 51 <missing-glyph d="M50 0V800H750V0H50ZM700 50V750H100V50H700Z"/> | |
| 52 <glyph unicode="1" glyph-name="gl_1" d="M 0 0 L 250 0 L 250 250
L 0 250 Z"/> | |
| 53 <glyph unicode="2" glyph-name="gl_2" d="M 0 0 L 500 0 L 500 500
L 0 500 Z"/> | |
| 54 </font> | |
| 55 | |
| 56 <font id="advance2000" horiz-adv-x="2000"> | |
| 57 <font-face font-family="advance2000" units-per-em="1000" ascent="1000" descent="
0" alphabetic="0"/> | |
| 58 <missing-glyph d="M50 0V800H750V0H50ZM700 50V750H100V50H700Z"/> | |
| 59 <glyph unicode="1" glyph-name="gl_1" d="M 0 0 L 250 0 L 250 250
L 0 250 Z"/> | |
| 60 <glyph unicode="2" glyph-name="gl_2" d="M 0 0 L 500 0 L 500 500
L 0 500 Z"/> | |
| 61 </font> | |
| 62 | |
| 63 <font id="advanceIgnored" horiz-adv-x="0"> | |
| 64 <font-face font-family="advanceIgnored" units-per-em="1000" ascent="1000" descen
t="0" alphabetic="0"/> | |
| 65 <missing-glyph horiz-adv-x="800" d="M50 0V800H750V0H50ZM700 50V7
50H100V50H700Z"/> | |
| 66 <glyph unicode="1" glyph-name="gl_1" horiz-adv-x="3000" d="M 0 0
L 250 0 L 250 250 L 0 250 Z"/> | |
| 67 <glyph unicode="2" glyph-name="gl_2" horiz-adv-x="3000" d="M 0 0
L 500 0 L 500 500 L 0 500 Z"/> | |
| 68 </font> | |
| 69 | |
| 70 <g id="marker"> | |
| 71 <line y2="-20" stroke="red"/> | |
| 72 <rect x="-4" y="-4" width="8" height="8" fill="#8888ff"/> | |
| 73 </g> | |
| 74 </defs> | |
| 75 | |
| 76 <g transform="translate(20, 120)" font-size="14"> | |
| 77 | |
| 78 <g> | |
| 79 <text>horiz-adv-x=1000</text> | |
| 80 <use xlink:href="#marker" x="240"/> | |
| 81 <use xlink:href="#marker" x="270"/> | |
| 82 <text x="240" font-family="advance1000" font-size="30">12</text>
| |
| 83 </g> | |
| 84 | |
| 85 <g transform="translate(0, 40)"> | |
| 86 <text>horiz-adv-x=2000</text> | |
| 87 <use xlink:href="#marker" x="240"/> | |
| 88 <use xlink:href="#marker" x="300"/> | |
| 89 <text x="240" font-family="advance2000" font-size="30">12</text> | |
| 90 </g> | |
| 91 | |
| 92 | |
| 93 <g transform="translate(0, 80)"> | |
| 94 <text>horiz-adv-x=1000 but ignored</text> | |
| 95 <use xlink:href="#marker" x="240"/> | |
| 96 <use xlink:href="#marker" x="330"/> | |
| 97 <text x="240" font-family="advanceIgnored" font-size="30">12</te
xt> | |
| 98 </g> | |
| 99 | |
| 100 </g> | |
| 101 </g> | |
| 102 | |
| 103 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black"
>$Revision: 1.10 $</text> | |
| 104 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" strok
e="#000000"/> | |
| 105 </svg> | |
| OLD | NEW |