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

Side by Side Diff: LayoutTests/svg/W3C-SVG-1.1/fonts-glyph-03-t.svg

Issue 656913006: Remove SVG fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests for landing Created 6 years, 1 month 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 <!-- =====================================================================-->
3 <!-- fonts-glyph-03-t.svg -->
4 <!-- -->
5 <!-- Test on the lang attribute. Validate that if the lang attribute is -->
6 <!-- set to a value that does not match the specification's matching -->
7 <!-- criteria, then the glyph will not be used. -->
8 <!-- -->
9 <!-- Author : craign@cisra.canon.com.au --><!D OCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG /1.1/DTD/svg11-tiny.dtd">
10
11 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" vie wBox="0 0 480 360">
12 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/descripti on/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="CL" owner="CN" desc="Test on the lang attribute" status="accepted" version="$Revisio n: 1.10 $" testname="$RCSfile: fonts-glyph-03-t.svg,v $">
13 <OperatorScript>
14 <Paragraph>
15 This files tests the lang attribute support of t he glyph
16 element. The test should produce an upward-trian gle for
17 the first (en) test element and a square for the second (fr)
18 and third (fr-ca) text element. In the third ca se, a glyph for
19 fr is also suitable for a more specific language text fr-ca.
20 In the fourth case, no suitable language specifi c or general
21 glyph is provided by the test so a fallback font for the letter
22 'a' should be used. A triangle or square must no t be
23 displayed in the fourth case.
24 </Paragraph>
25 </OperatorScript>
26 </SVGTestCase>
27 <g id="test-body-content">
28 <defs>
29 <font horiz-adv-x="500">
30 <font-face font-family="SVGFont" units-per-em="1000" ascent="800" descen t="200" alphabetic="200"/>
31 <missing-glyph horiz-adv-x="500" d="M0 0L500 0L500 1000L0 1000M50 50L50 950L450 950L450 50Z"/>
32 <glyph unicode=" " glyph-name="space"/>
33 <glyph unicode="a" glyph-name="upward-triangle" lang="en" d="M0 0L500 0L 250 900Z"/>
34 <glyph unicode="a" glyph-name="square" lang="fr" d="M0 250L500 250L500 7 50L0 750Z"/>
35 </font>
36 </defs>
37 <g font-family="SVGFont" font-size="50">
38 <!-- Should produce an upward pointing triangle -->
39 <text x="50" y="50" xml:lang="en">a</text>
40 <!-- Should produce a square -->
41 <text x="50" y="120" xml:lang="fr">a</text>
42 <!-- Should also produce a square -->
43 <text x="50" y="190" xml:lang="fr-ca">a</text>
44 <!-- Should fall back to another font -->
45 <text x="50" y="260" xml:lang="de">a</text>
46 </g>
47 </g>
48 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$ Revision: 1.10 $</text>
49 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke= "#000000"/>
50 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698