Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Side by Side Diff: LayoutTests/svg/text/text-altglyph-01-b.svg

Issue 656913006: Remove SVG fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests for landing Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics /SVG/1.1/DTD/svg11-basic.dtd">
3
4 <!--======================================================================-->
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, Institut National de Recherche en =-->
7 <!--= Informatique et en Automatique, Keio University). All Rights =-->
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================-->
10 <!-- ===================================================================== -->
11 <!-- -->
12 <!-- text-altGlyph-BE-07.svg -->
13 <!-- renamed for 1.1 suite to text-altglyph-01-f.svg -->
14 <!-- renamed for svgt/b to text-altglyph-01-b.svg -->
15 <!-- -->
16 <!-- Test 'altGlyph' facilities and many-to-many chars to glyphs. -->
17 <!-- -->
18 <!-- Author : Jon Ferraiolo 05-Aug-2000 -->
19 <!-- 1.1 revision by Vincent Hardy -->
20 <!-- Revised for svgt/b: Ola Andersson Jun/26/2002 -->
21 <!-- -->
22 <!-- History: -->
23 <!-- 05-Aug-2000, JF: Serial#1 created. -->
24 <!-- 30-Oct-2000, JF: Fix many, many bugs in test case. -->
25 <!-- Update baseline names to match new spec. -->
26 <!-- Update to serial#=2. -->
27 <!-- 07-Dec-2000, JF: Pretty formatted broke the test by introducing -->
28 <!-- undesirable white space. I removed the white space. -->
29 <!-- -->
30 <!-- ===================================================================== -->
31 <!--======================================================================-->
32 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
33 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
34 <!--======================================================================-->
35 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" version="1.1" baseProfile="basic">
36 <!--SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" >
37 <OperatorScript version="$Revision: 1.5 $" testname="text-altglyph-01-b.sv g">
38 <Paragraph>
39 Test 'altGlyph' facilities and many-to-many chars to glyphs.
40 </Paragraph>
41 <Paragraph>
42 Three text strings show: the word "HAPPY" in red, the word "SAD" in green
43 and the word "SASSY" in blue.
44 </Paragraph>
45 <Paragraph>
46 The "HAPPY" and "SAD" strings test the 'altGlyph' facility and
47 the ability to map multiple glyphs to a single character.
48 All characters except the "D" are bracketed by 'altGlyph' elemen ts
49 to use two different glyphs to render each character.
50 For "HAPPY", the horizontal stroke through the center of the cha racters
51 is a smile stroke.
52 For "SAD", the horizontal stroke through the center of the chara cters
53 is a frown stroke.
54 </Paragraph>
55 <Paragraph>
56 The "SASSY" string tests a single glyph representing multiple ch aracters
57 (a ligature). The SVG font in the test case contains an "SS" lig ature
58 so that the "SS" in "SASSY" is rendered with a single glyph, whe re
59 the two parts of the "SS" are connected.
60 </Paragraph>
61 <Paragraph>
62 This test requires some support for SVG fonts.
63 </Paragraph>
64 </OperatorScript>
65 </SVGTestCase-->
66
67 <title id="test-title">text-altglyph-01-b</title>
68 <desc id="test-desc">Test 'altGlyph' facilities and many-to-many chars to gly phs.</desc>
69 <!--======================================================================-->
70 <!--Content of Test Case follows... =====================-->
71 <!--======================================================================-->
72 <g id="test-body-content" stroke-miterlimit="4" >
73 <text font-family="Arial" font-size="40" x="5" y="50">Test 'altGlyph' faci lities</text>
74 <text font-family="Arial" font-size="30" x="5" y="90">and many-to-many cha rs to glyphs</text>
75 <defs>
76 <font id="Font1" horiz-adv-x="5">
77 <font-face font-family="HappySad" font-weight="bold" font-style="nor mal" units-per-em="8" cap-height="8" x-height="4" ascent="8" descent="2" alphabe tic="0" mathematical="4" ideographic="-2" hanging="8"/>
78 <missing-glyph d="M1,3h2v2h-2z"/>
79 <glyph id="A1" d="M0,0 L2,8 L4,0 M0,4 C1,3 3,3 4,4"/>
80 <glyph id="H1" d="M0,0 V8 M4,0 V8 M0,4 C1,3 3,3 4,4"/>
81 <glyph id="P1" d="M0,0 V8 H2 C3,8 4,7 4,6 V4 M0,4 C1,3 3,3 4,4"/>
82 <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"/>
83 <glyph id="Y1" d="M0,8 V4 M4,8 V4 M2,4 V0 M0,4 C1,3 3,3 4,4"/>
84 <glyph id="A2" d="M0,0 L2,8 L4,0 M0,4 C1,5 3,5 4,4"/>
85 <glyph id="H2" d="M0,0 V8 M4,0 V8 M0,4 C1,5 3,5 4,4"/>
86 <glyph id="P2" d="M0,0 V8 H2 C3,8 4,7 4,6 V4 M0,4 C1,5 3,5 4,4"/>
87 <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"/>
88 <glyph id="Y2" d="M0,8 V4 M4,8 V4 M2,4 V0 M0,4 C1,5 3,5 4,4"/>
89 <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 "/>
90 <glyph id="A" unicode="A" d="M0,0 L2,8 L4,0 M0,4 H4"/>
91 <glyph id="D" unicode="D" d="M0,0 V8 C3,8 4,7 4,4 C4,1 3,0 0,0z"/>
92 <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"/>
93 <glyph id="Y" unicode="Y" d="M0,8 V4 M4,8 V4 M2,4 V0 M0,4 H4"/>
94 </font>
95 <altGlyphDef id="Afrown">
96 <glyphRef xlink:href="#A2"/>
97 </altGlyphDef>
98 <altGlyphDef id="Asmile">
99 <glyphRef xlink:href="#A1"/>
100 </altGlyphDef>
101 <altGlyphDef id="Hsmile">
102 <glyphRef xlink:href="#H1"/>
103 </altGlyphDef>
104 <altGlyphDef id="Psmile">
105 <glyphRef xlink:href="#P1"/>
106 </altGlyphDef>
107 <altGlyphDef id="Sfrown">
108 <glyphRef xlink:href="#S2"/>
109 </altGlyphDef>
110 <altGlyphDef id="Ysmile">
111 <glyphRef xlink:href="#Y1"/>
112 </altGlyphDef>
113 </defs>
114 <g font-family="HappySad" font-size="60" fill="none" stroke-width="5" >
115 <text x="140" y="190" stroke="red" >
116 <altGlyph xlink:href="#Hsmile">H</altGlyph>
117 <altGlyph xlink:href="#Asmile">A</altGlyph>
118 <altGlyph xlink:href="#Psmile">P</altGlyph>
119 <altGlyph xlink:href="#Psmile">P</altGlyph>
120 <altGlyph xlink:href="#Ysmile">Y</altGlyph>
121 </text>
122 <text x="50" y="270" stroke="green" ><altGlyph xlink:href="#Sfrown">S</ altGlyph><altGlyph xlink:href="#Afrown">A</altGlyph>D</text>
123 <text x="280" y="270" stroke="blue" >SASSY</text>
124 </g>
125
126 </g>
127 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black"> $Revision: 1.5 $</text>
128 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke ="#000000"/>
129 <script>
130 if (window.testRunner)
131 window.testRunner.dumpSelectionRect();
132 document.execCommand("SelectAll");
133 </script>
134 </svg>
135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698