1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
4 | <head> |
5 | <meta name='title' content='size_spacing.x3d'/> |
6 | <meta name='Image' content='size_spacing-front.jpg'/> |
7 | <meta name='reference' content='http://www.nist.gov/vrml.html'/> |
8 | <meta name='reference' content='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/> |
9 | <meta name='creator' content='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/> |
10 | <meta name='disclaimer' content='This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/> |
11 | <meta name='reference' content='Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml'/> |
12 | <meta name='reference' content='Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml'/> |
13 | <meta name='info' content='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/> |
14 | <meta name='translator' content='Michael Kass NIST, Don Brutzman NPS'/> |
15 | <meta name='translated' content='21 January 2001'/> |
16 | <meta name='modified' content='28 August 2023'/> |
17 | <meta name='description' content='Test different size and spacing values for FontStyle node. Three different "size" and "spacing" combinations are used here to test browser ability to properly space text both horizontally and vertically. The first test sets size = 2 and spacing = 0.5 (the red text). Distance between the base of the two text lines should be 1 unit. For the horizontal text this is measured between the bottoms of the text lines. For the vertical text, spacing is measured between the left sides of adjacent text lines. In both cases, the nominal vertical height of the fonts should be 2 units. The second test sets size = 1 and spacing = 1 (the yellow text). Distance between the base of the two text lines should be 1 unit. For the horizontal text this is measured between the bottoms of the text lines. For the vertical text, spacing is measured between the left sides of adjacent text lines. In both cases, the nominal vertical height of the fonts should be 1 unit. The first test sets size = 0.75 and spacing = 4 (the blue text). Distance between the base of the two text lines should be 3 units. For the horizontal text this is measured between the bottoms of the text lines. For the vertical text, spacing is measured between the left sides of adjacent text lines. In both cases, the nominal vertical height of the fonts should be 0.75 units.'/> |
18 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/FontStyle/size_spacing.x3d'/> |
19 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
20 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
21 | <meta name='license' content='../../license.html'/> |
22 | </head> |
23 | <Scene> |
24 | <WorldInfo title='size_spacing.x3d'/> |
25 | <Viewpoint description='FontStyle size and spacing' position='0 0 22'/> |
26 | <Transform translation='-15 6 0'> |
27 | <Shape> |
28 | <Appearance> |
29 | <Material diffuseColor='1 0 0'/> |
30 | </Appearance> |
31 | <Text string='"Size 2" "Spacing .5"'> |
32 | <FontStyle size='2' spacing='0.5'/> |
33 | </Text> |
34 | </Shape> |
35 | </Transform> |
36 | <Transform translation='-8 1 0'> |
37 | <Shape> |
38 | <Appearance> |
39 | <Material diffuseColor='1 1 0'/> |
40 | </Appearance> |
41 | <Text string='"Size 1" "Spacing 1"'> |
42 | <FontStyle/> |
43 | </Text> |
44 | </Shape> |
45 | </Transform> |
46 | <Transform translation='0 9 0'> |
47 | <Shape> |
48 | <Appearance> |
49 | <Material diffuseColor='1 0 0'/> |
50 | </Appearance> |
51 | <Text string='"Size 2" "Spacing .5"'> |
52 | <FontStyle horizontal='false' size='2' spacing='0.5'/> |
53 | </Text> |
54 | </Shape> |
55 | </Transform> |
56 | <Transform translation='7 9 0'> |
57 | <Shape> |
58 | <Appearance> |
59 | <Material diffuseColor='1 1 0'/> |
60 | </Appearance> |
61 | <Text string='"Size 1" "Spacing 1"'> |
62 | <FontStyle horizontal='false'/> |
63 | </Text> |
64 | </Shape> |
65 | </Transform> |
66 | <Transform translation='-15 -4 0'> |
67 | <Shape> |
68 | <Appearance> |
69 | <Material diffuseColor='0 0 1'/> |
70 | </Appearance> |
71 | <Text string='"Size 0.75" "Spacing 4"'> |
72 | <FontStyle size='0.75' spacing='4'/> |
73 | </Text> |
74 | </Shape> |
75 | </Transform> |
76 | <Transform translation='12 9 0'> |
77 | <Shape> |
78 | <Appearance> |
79 | <Material diffuseColor='0 0 1'/> |
80 | </Appearance> |
81 | <Text string='"Size 0.75" "Spacing 4"'> |
82 | <FontStyle horizontal='false' size='0.75' spacing='4'/> |
83 | </Text> |
84 | </Shape> |
85 | </Transform> |
86 | <Transform DEF='LEFT'> |
87 | <Shape> |
88 | <IndexedLineSet coordIndex='0 1 -1 2 3 -1 4 5 -1 6 7 -1 8 9 -1 10 11 -1 12 13 -1 14 15 -1 16 17 -1 18 19 -1 20 21 -1 22 23 -1 24 25 -1 26 27 -1 28 29 -1 30 31 -1 32 33 -1 34 35 -1 36 37 -1 38 39 -1'> |
89 | <Coordinate point='-20 -10 0 0 -10 0 -20 -9 0 0 -9 0 -20 -8 0 0 -8 0 -20 -7 0 0 -7 0 -20 -6 0 0 -6 0 -20 -5 0 0 -5 0 -20 -4 0 0 -4 0 -20 -3 0 0 -3 0 -20 -2 0 0 -2 0 -20 -1 0 0 -1 0 -20 1 0 0 1 0 -20 2 0 0 2 0 -20 3 0 0 3 0 -20 4 0 0 4 0 -20 5 0 0 5 0 -20 6 0 0 6 0 -20 7 0 0 7 0 -20 8 0 0 8 0 -20 9 0 0 9 0 -20 10 0 0 10 0'/> |
90 | </IndexedLineSet> |
91 | <Appearance> |
92 | <Material emissiveColor='0 1 0'/> |
93 | </Appearance> |
94 | </Shape> |
95 | </Transform> |
96 | <Transform DEF='RIGHT'> |
97 | <Shape> |
98 | <IndexedLineSet coordIndex='0 1 -1 2 3 -1 4 5 -1 6 7 -1 8 9 -1 10 11 -1 12 13 -1 14 15 -1 16 17 -1 18 19 -1 20 21 -1 22 23 -1 24 25 -1 26 27 -1 28 29 -1 30 31 -1 32 33 -1 34 35 -1 36 37 -1 38 39 -1'> |
99 | <Coordinate point='1 10 0 1 -10 0 2 10 0 2 -10 0 3 10 0 3 -10 0 4 10 0 4 -10 0 5 10 0 5 -10 0 6 10 0 6 -10 0 7 10 0 7 -10 0 8 10 0 8 -10 0 9 10 0 9 -10 0 10 10 0 10 -10 0 11 10 0 11 -10 0 12 10 0 12 -10 0 13 10 0 13 -10 0 14 10 0 14 -10 0 15 10 0 15 -10 0 16 10 0 16 -10 0 17 10 0 17 -10 0 18 10 0 18 -10 0 19 10 0 19 -10 0 20 10 0 20 -10 0'/> |
100 | </IndexedLineSet> |
101 | <Appearance> |
102 | <Material emissiveColor='0 1 0'/> |
103 | </Appearance> |
104 | </Shape> |
105 | </Transform> |
106 | <Transform> |
107 | <Shape> |
108 | <Appearance> |
109 | <Material emissiveColor='0 1 0'/> |
110 | </Appearance> |
111 | <IndexedLineSet DEF='AXES' coordIndex='0 1 -1 2 3 -1'> |
112 | <Coordinate point='-20 0 0 20 0 0 0 10 0 0 -10 0'/> |
113 | </IndexedLineSet> |
114 | </Shape> |
115 | </Transform> |
116 | </Scene> |
117 | </X3D> |
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->