Lines Matching refs:Anchor
101 " pos cursive A <anchor 120 -20> <anchor NULL>;"
103 anchor = doc.statements[0].statements[0].entryAnchor
104 self.assertEqual(type(anchor), ast.Anchor)
105 self.assertEqual(anchor.x, 120)
106 self.assertEqual(anchor.y, -20)
107 self.assertIsNone(anchor.contourpoint)
108 self.assertIsNone(anchor.xDeviceTable)
109 self.assertIsNone(anchor.yDeviceTable)
114 " pos cursive A <anchor 120 -20 contourpoint 5> <anchor NULL>;"
116 anchor = doc.statements[0].statements[0].entryAnchor
117 self.assertEqual(type(anchor), ast.Anchor)
118 self.assertEqual(anchor.x, 120)
119 self.assertEqual(anchor.y, -20)
120 self.assertEqual(anchor.contourpoint, 5)
121 self.assertIsNone(anchor.xDeviceTable)
122 self.assertIsNone(anchor.yDeviceTable)
128 " <anchor 120 -20 <device 11 111, 12 112> <device NULL>>"
129 " <anchor NULL>;"
131 anchor = doc.statements[0].statements[0].entryAnchor
132 self.assertEqual(type(anchor), ast.Anchor)
133 self.assertEqual(anchor.x, 120)
134 self.assertEqual(anchor.y, -20)
135 self.assertIsNone(anchor.contourpoint)
136 self.assertEqual(anchor.xDeviceTable, ((11, 111), (12, 112)))
137 self.assertIsNone(anchor.yDeviceTable)
142 " pos cursive A <anchor 120 -20> <anchor NULL>;"
144 anchor = doc.statements[0].statements[0].exitAnchor
145 self.assertIsNone(anchor)
151 " pos cursive A <anchor Foo> <anchor NULL>;"
153 anchor = doc.statements[0].statements[1].entryAnchor
154 self.assertEqual(type(anchor), ast.Anchor)
155 self.assertEqual(anchor.x, 120)
156 self.assertEqual(anchor.y, -20)
157 self.assertEqual(anchor.contourpoint, 7)
158 self.assertIsNone(anchor.xDeviceTable)
159 self.assertIsNone(anchor.yDeviceTable)
163 FeatureLibError, 'Unknown anchor "UnknownName"', self.parse,
165 " position cursive A <anchor UnknownName> <anchor NULL>;"
299 "markClass [acute grave] <anchor 500 800> @TOP_MARKS;"
300 "markClass cedilla <anchor 500 -100> @BOTTOM_MARKS;"
900 " position cursive A <anchor 12 -2> <anchor 2 3>;"
914 " enumerate position cursive A <anchor 12 -2> <anchor 2 3>;"
919 "markClass [acute grave] <anchor 150 -10> @TOP_MARKS;"
920 "markClass [dieresis umlaut] <anchor 300 -10> @TOP_MARKS;"
921 "markClass [cedilla] <anchor 300 600> @BOTTOM_MARKS;"
924 " <anchor 250 450> mark @TOP_MARKS "
925 " <anchor 210 -10> mark @BOTTOM_MARKS;"
941 " markClass cedilla <anchor 300 600> @BOTTOM_MARKS;"
942 " enumerate position base A <anchor 12 -2> mark @BOTTOM_MARKS;"
950 " position base [a e o u] <anchor 250 450> mark @MARKS;"
955 "markClass [grave acute] <anchor 150 500> @TOP_MARKS;"
956 "markClass [cedilla] <anchor 300 -100> @BOTTOM_MARKS;"
960 " <anchor 50 600> mark @TOP_MARKS "
961 " <anchor 50 -10> mark @BOTTOM_MARKS "
963 " <anchor 30 800> mark @TOP_MARKS "
965 " <anchor NULL> "
967 " <anchor 30 -10> mark @BOTTOM_MARKS;"
985 " markClass cedilla <anchor 300 600> @MARKS;"
987 " ligature f_i <anchor 100 0> mark @MARKS"
988 " ligComponent <anchor NULL>;"
996 " position ligature f_i <anchor 250 450> mark @MARKS;"
1001 "markClass damma <anchor 189 -103> @MARK_CLASS_1;"
1003 " position mark hamza <anchor 221 301> mark @MARK_CLASS_1;"
1017 "markClass damma <anchor 189 -103> @MARK_CLASS_1;"
1019 " enum pos mark hamza <anchor 221 301> mark @MARK_CLASS_1;"
1027 " position mark cedilla <anchor 250 450> mark @MARKS;"
1055 doc = self.parse("markClass [acute grave] <anchor 350 3> @MARKS;")
1060 self.assertEqual((mc.anchor.x, mc.anchor.y), (350, 3))