Lines Matching full:info
38 def _writeInfoToPlist(self, info): argument
41 plistlib.dump(info, f)
56 info = dict(fontInfoVersion3)
57 info["familyName"] = 123
58 self._writeInfoToPlist(info)
60 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
62 info = dict(fontInfoVersion3)
63 info["styleName"] = 123
64 self._writeInfoToPlist(info)
66 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
68 info = dict(fontInfoVersion3)
69 info["styleMapFamilyName"] = 123
70 self._writeInfoToPlist(info)
72 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
75 info = dict(fontInfoVersion3)
76 info["styleMapStyleName"] = 123
77 self._writeInfoToPlist(info)
79 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
81 info = dict(fontInfoVersion3)
82 info["styleMapStyleName"] = "REGULAR"
83 self._writeInfoToPlist(info)
85 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
87 info = dict(fontInfoVersion3)
88 info["versionMajor"] = "1"
89 self._writeInfoToPlist(info)
91 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
93 info = dict(fontInfoVersion3)
94 info["versionMinor"] = "0"
95 self._writeInfoToPlist(info)
97 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
98 info = dict(fontInfoVersion3)
99 info["versionMinor"] = -1
100 self._writeInfoToPlist(info)
102 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
104 info = dict(fontInfoVersion3)
105 info["copyright"] = 123
106 self._writeInfoToPlist(info)
108 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
110 info = dict(fontInfoVersion3)
111 info["trademark"] = 123
112 self._writeInfoToPlist(info)
114 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
116 info = dict(fontInfoVersion3)
117 info["unitsPerEm"] = "abc"
118 self._writeInfoToPlist(info)
120 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
121 info = dict(fontInfoVersion3)
122 info["unitsPerEm"] = -1
123 self._writeInfoToPlist(info)
125 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
126 info = dict(fontInfoVersion3)
127 info["unitsPerEm"] = -1.0
128 self._writeInfoToPlist(info)
130 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
132 info = dict(fontInfoVersion3)
133 info["descender"] = "abc"
134 self._writeInfoToPlist(info)
136 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
138 info = dict(fontInfoVersion3)
139 info["xHeight"] = "abc"
140 self._writeInfoToPlist(info)
142 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
144 info = dict(fontInfoVersion3)
145 info["capHeight"] = "abc"
146 self._writeInfoToPlist(info)
148 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
150 info = dict(fontInfoVersion3)
151 info["ascender"] = "abc"
152 self._writeInfoToPlist(info)
154 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
156 info = dict(fontInfoVersion3)
157 info["italicAngle"] = "abc"
158 self._writeInfoToPlist(info)
160 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
164 info = dict(fontInfoVersion3)
165 info["openTypeGaspRangeRecords"] = "abc"
166 self._writeInfoToPlist(info)
168 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
170 info = dict(fontInfoVersion3)
171 info["openTypeGaspRangeRecords"] = []
172 self._writeInfoToPlist(info)
176 info = dict(fontInfoVersion3)
177 info["openTypeGaspRangeRecords"] = ["abc"]
178 self._writeInfoToPlist(info)
180 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
182 info = dict(fontInfoVersion3)
183 info["openTypeGaspRangeRecords"] = [dict(rangeMaxPPEM=0xFFFF, notTheRightKey=1)]
184 self._writeInfoToPlist(info)
186 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
187 info = dict(fontInfoVersion3)
188 info["openTypeGaspRangeRecords"] = [dict(notTheRightKey=1, rangeGaspBehavior=[0])]
189 self._writeInfoToPlist(info)
191 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
193 info = dict(fontInfoVersion3)
194 …info["openTypeGaspRangeRecords"] = [dict(rangeMaxPPEM="abc", rangeGaspBehavior=[0]), dict(rangeMax…
195 self._writeInfoToPlist(info)
197 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
199 info = dict(fontInfoVersion3)
200 …info["openTypeGaspRangeRecords"] = [dict(rangeMaxPPEM=10, rangeGaspBehavior="abc"), dict(rangeMaxP…
201 self._writeInfoToPlist(info)
203 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
205 info = dict(fontInfoVersion3)
206 …info["openTypeGaspRangeRecords"] = [dict(rangeMaxPPEM=10, rangeGaspBehavior=[-1]), dict(rangeMaxPP…
207 self._writeInfoToPlist(info)
209 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
211 info = dict(fontInfoVersion3)
212 …info["openTypeGaspRangeRecords"] = [dict(rangeMaxPPEM=0xFFFF, rangeGaspBehavior=[0]), dict(rangeMa…
213 self._writeInfoToPlist(info)
215 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
217 info = dict(fontInfoVersion3)
218 …info["openTypeGaspRangeRecords"] = [dict(rangeMaxPPEM=10, rangeGaspBehavior=[0]), dict(rangeMaxPPE…
219 self._writeInfoToPlist(info)
226 info = dict(fontInfoVersion3)
227 info["openTypeHeadCreated"] = 123
228 self._writeInfoToPlist(info)
230 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
232 info = dict(fontInfoVersion3)
233 info["openTypeHeadCreated"] = "2000-Jan-01 00:00:00"
234 self._writeInfoToPlist(info)
236 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
238 info = dict(fontInfoVersion3)
239 info["openTypeHeadLowestRecPPEM"] = "abc"
240 self._writeInfoToPlist(info)
242 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
243 info = dict(fontInfoVersion3)
244 info["openTypeHeadLowestRecPPEM"] = -1
245 self._writeInfoToPlist(info)
247 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
249 info = dict(fontInfoVersion3)
250 info["openTypeHeadFlags"] = [-1]
251 self._writeInfoToPlist(info)
253 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
257 info = dict(fontInfoVersion3)
258 info["openTypeHheaAscender"] = "abc"
259 self._writeInfoToPlist(info)
261 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
263 info = dict(fontInfoVersion3)
264 info["openTypeHheaDescender"] = "abc"
265 self._writeInfoToPlist(info)
267 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
269 info = dict(fontInfoVersion3)
270 info["openTypeHheaLineGap"] = "abc"
271 self._writeInfoToPlist(info)
273 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
275 info = dict(fontInfoVersion3)
276 info["openTypeHheaCaretSlopeRise"] = "abc"
277 self._writeInfoToPlist(info)
279 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
281 info = dict(fontInfoVersion3)
282 info["openTypeHheaCaretSlopeRun"] = "abc"
283 self._writeInfoToPlist(info)
285 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
287 info = dict(fontInfoVersion3)
288 info["openTypeHheaCaretOffset"] = "abc"
289 self._writeInfoToPlist(info)
291 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
295 info = dict(fontInfoVersion3)
296 info["openTypeNameDesigner"] = 123
297 self._writeInfoToPlist(info)
299 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
301 info = dict(fontInfoVersion3)
302 info["openTypeNameDesignerURL"] = 123
303 self._writeInfoToPlist(info)
305 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
307 info = dict(fontInfoVersion3)
308 info["openTypeNameManufacturer"] = 123
309 self._writeInfoToPlist(info)
311 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
313 info = dict(fontInfoVersion3)
314 info["openTypeNameManufacturerURL"] = 123
315 self._writeInfoToPlist(info)
317 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
319 info = dict(fontInfoVersion3)
320 info["openTypeNameLicense"] = 123
321 self._writeInfoToPlist(info)
323 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
325 info = dict(fontInfoVersion3)
326 info["openTypeNameLicenseURL"] = 123
327 self._writeInfoToPlist(info)
329 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
331 info = dict(fontInfoVersion3)
332 info["openTypeNameVersion"] = 123
333 self._writeInfoToPlist(info)
335 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
337 info = dict(fontInfoVersion3)
338 info["openTypeNameUniqueID"] = 123
339 self._writeInfoToPlist(info)
341 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
343 info = dict(fontInfoVersion3)
344 info["openTypeNameDescription"] = 123
345 self._writeInfoToPlist(info)
347 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
349 info = dict(fontInfoVersion3)
350 info["openTypeNamePreferredFamilyName"] = 123
351 self._writeInfoToPlist(info)
353 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
355 info = dict(fontInfoVersion3)
356 info["openTypeNamePreferredSubfamilyName"] = 123
357 self._writeInfoToPlist(info)
359 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
361 info = dict(fontInfoVersion3)
362 info["openTypeNameCompatibleFullName"] = 123
363 self._writeInfoToPlist(info)
365 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
367 info = dict(fontInfoVersion3)
368 info["openTypeNameSampleText"] = 123
369 self._writeInfoToPlist(info)
371 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
373 info = dict(fontInfoVersion3)
374 info["openTypeNameWWSFamilyName"] = 123
375 self._writeInfoToPlist(info)
377 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
379 info = dict(fontInfoVersion3)
380 info["openTypeNameWWSSubfamilyName"] = 123
381 self._writeInfoToPlist(info)
383 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
386 info = dict(fontInfoVersion3)
387 info["openTypeNameRecords"] = "abc"
388 self._writeInfoToPlist(info)
390 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
392 info = dict(fontInfoVersion3)
393 info["openTypeNameRecords"] = ["abc"]
394 self._writeInfoToPlist(info)
396 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
398 info = dict(fontInfoVersion3)
399 info["openTypeNameRecords"] = [dict(foo="bar")]
400 self._writeInfoToPlist(info)
402 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
404 info = dict(fontInfoVersion3)
405 info["openTypeNameRecords"] = [
408 self._writeInfoToPlist(info)
410 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
411 info = dict(fontInfoVersion3)
412 info["openTypeNameRecords"] = [
415 self._writeInfoToPlist(info)
417 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
418 info = dict(fontInfoVersion3)
419 info["openTypeNameRecords"] = [
422 self._writeInfoToPlist(info)
424 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
425 info = dict(fontInfoVersion3)
426 info["openTypeNameRecords"] = [
429 self._writeInfoToPlist(info)
431 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
432 info = dict(fontInfoVersion3)
433 info["openTypeNameRecords"] = [
436 self._writeInfoToPlist(info)
438 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
439 info = dict(fontInfoVersion3)
440 info["openTypeNameRecords"] = [
443 self._writeInfoToPlist(info)
445 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
447 info = dict(fontInfoVersion3)
448 info["openTypeNameRecords"] = [
451 self._writeInfoToPlist(info)
453 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
454 info = dict(fontInfoVersion3)
455 info["openTypeNameRecords"] = [
458 self._writeInfoToPlist(info)
460 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
461 info = dict(fontInfoVersion3)
462 info["openTypeNameRecords"] = [
465 self._writeInfoToPlist(info)
467 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
468 info = dict(fontInfoVersion3)
469 info["openTypeNameRecords"] = [
472 self._writeInfoToPlist(info)
474 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
475 info = dict(fontInfoVersion3)
476 info["openTypeNameRecords"] = [
479 self._writeInfoToPlist(info)
481 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
483 info = dict(fontInfoVersion3)
484 info["openTypeNameRecords"] = [
488 self._writeInfoToPlist(info)
495 info = dict(fontInfoVersion3)
496 info["openTypeOS2WidthClass"] = "abc"
497 self._writeInfoToPlist(info)
499 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
501 info = dict(fontInfoVersion3)
502 info["openTypeOS2WidthClass"] = 15
503 self._writeInfoToPlist(info)
505 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
507 info = dict(fontInfoVersion3)
509 info["openTypeOS2WeightClass"] = "abc"
510 self._writeInfoToPlist(info)
512 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
514 info["openTypeOS2WeightClass"] = -50
515 self._writeInfoToPlist(info)
517 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
519 info = dict(fontInfoVersion3)
520 info["openTypeOS2Selection"] = [-1]
521 self._writeInfoToPlist(info)
523 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
525 info = dict(fontInfoVersion3)
526 info["openTypeOS2VendorID"] = 1234
527 self._writeInfoToPlist(info)
529 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
532 info = dict(fontInfoVersion3)
533 info["openTypeOS2Panose"] = [0, 1, 2, 3, 4, 5, 6, 7, 8, str(9)]
534 self._writeInfoToPlist(info)
536 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
538 info = dict(fontInfoVersion3)
539 info["openTypeOS2Panose"] = [0, 1, 2, 3, 4, 5, 6, 7, 8, -9]
540 self._writeInfoToPlist(info)
542 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
544 info = dict(fontInfoVersion3)
545 info["openTypeOS2Panose"] = [0, 1, 2, 3]
546 self._writeInfoToPlist(info)
548 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
550 info = dict(fontInfoVersion3)
551 info["openTypeOS2Panose"] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
552 self._writeInfoToPlist(info)
554 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
557 info = dict(fontInfoVersion3)
558 info["openTypeOS2FamilyClass"] = [1, str(1)]
559 self._writeInfoToPlist(info)
561 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
563 info = dict(fontInfoVersion3)
564 info["openTypeOS2FamilyClass"] = [1]
565 self._writeInfoToPlist(info)
567 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
569 info = dict(fontInfoVersion3)
570 info["openTypeOS2FamilyClass"] = [1, 1, 1]
571 self._writeInfoToPlist(info)
573 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
575 info = dict(fontInfoVersion3)
576 info["openTypeOS2FamilyClass"] = [1, 201]
577 self._writeInfoToPlist(info)
579 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
582 info = dict(fontInfoVersion3)
583 info["openTypeOS2UnicodeRanges"] = ["0"]
584 self._writeInfoToPlist(info)
586 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
588 info = dict(fontInfoVersion3)
589 info["openTypeOS2UnicodeRanges"] = [-1]
590 self._writeInfoToPlist(info)
592 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
595 info = dict(fontInfoVersion3)
596 info["openTypeOS2CodePageRanges"] = ["0"]
597 self._writeInfoToPlist(info)
599 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
601 info = dict(fontInfoVersion3)
602 info["openTypeOS2CodePageRanges"] = [-1]
603 self._writeInfoToPlist(info)
605 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
607 info = dict(fontInfoVersion3)
608 info["openTypeOS2TypoAscender"] = "abc"
609 self._writeInfoToPlist(info)
611 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
613 info = dict(fontInfoVersion3)
614 info["openTypeOS2TypoDescender"] = "abc"
615 self._writeInfoToPlist(info)
617 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
619 info = dict(fontInfoVersion3)
620 info["openTypeOS2TypoLineGap"] = "abc"
621 self._writeInfoToPlist(info)
623 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
625 info = dict(fontInfoVersion3)
626 info["openTypeOS2WinAscent"] = "abc"
627 self._writeInfoToPlist(info)
629 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
630 info = dict(fontInfoVersion3)
631 info["openTypeOS2WinAscent"] = -1
632 self._writeInfoToPlist(info)
634 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
636 info = dict(fontInfoVersion3)
637 info["openTypeOS2WinDescent"] = "abc"
638 self._writeInfoToPlist(info)
640 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
641 info = dict(fontInfoVersion3)
642 info["openTypeOS2WinDescent"] = -1
643 self._writeInfoToPlist(info)
645 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
648 info = dict(fontInfoVersion3)
649 info["openTypeOS2Type"] = ["1"]
650 self._writeInfoToPlist(info)
652 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
654 info = dict(fontInfoVersion3)
655 info["openTypeOS2Type"] = [-1]
656 self._writeInfoToPlist(info)
658 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
660 info = dict(fontInfoVersion3)
661 info["openTypeOS2SubscriptXSize"] = "abc"
662 self._writeInfoToPlist(info)
664 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
666 info = dict(fontInfoVersion3)
667 info["openTypeOS2SubscriptYSize"] = "abc"
668 self._writeInfoToPlist(info)
670 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
672 info = dict(fontInfoVersion3)
673 info["openTypeOS2SubscriptXOffset"] = "abc"
674 self._writeInfoToPlist(info)
676 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
678 info = dict(fontInfoVersion3)
679 info["openTypeOS2SubscriptYOffset"] = "abc"
680 self._writeInfoToPlist(info)
682 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
684 info = dict(fontInfoVersion3)
685 info["openTypeOS2SuperscriptXSize"] = "abc"
686 self._writeInfoToPlist(info)
688 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
690 info = dict(fontInfoVersion3)
691 info["openTypeOS2SuperscriptYSize"] = "abc"
692 self._writeInfoToPlist(info)
694 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
696 info = dict(fontInfoVersion3)
697 info["openTypeOS2SuperscriptXOffset"] = "abc"
698 self._writeInfoToPlist(info)
700 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
702 info = dict(fontInfoVersion3)
703 info["openTypeOS2SuperscriptYOffset"] = "abc"
704 self._writeInfoToPlist(info)
706 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
708 info = dict(fontInfoVersion3)
709 info["openTypeOS2StrikeoutSize"] = "abc"
710 self._writeInfoToPlist(info)
712 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
714 info = dict(fontInfoVersion3)
715 info["openTypeOS2StrikeoutPosition"] = "abc"
716 self._writeInfoToPlist(info)
718 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
722 info = dict(fontInfoVersion3)
723 info["openTypeVheaVertTypoAscender"] = "abc"
724 self._writeInfoToPlist(info)
726 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
728 info = dict(fontInfoVersion3)
729 info["openTypeVheaVertTypoDescender"] = "abc"
730 self._writeInfoToPlist(info)
732 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
734 info = dict(fontInfoVersion3)
735 info["openTypeVheaVertTypoLineGap"] = "abc"
736 self._writeInfoToPlist(info)
738 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
740 info = dict(fontInfoVersion3)
741 info["openTypeVheaCaretSlopeRise"] = "abc"
742 self._writeInfoToPlist(info)
744 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
746 info = dict(fontInfoVersion3)
747 info["openTypeVheaCaretSlopeRun"] = "abc"
748 self._writeInfoToPlist(info)
750 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
752 info = dict(fontInfoVersion3)
753 info["openTypeVheaCaretOffset"] = "abc"
754 self._writeInfoToPlist(info)
756 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
760 info = dict(fontInfoVersion3)
761 info["macintoshFONDFamilyID"] = "abc"
762 self._writeInfoToPlist(info)
764 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
766 info = dict(fontInfoVersion3)
767 info["macintoshFONDName"] = 123
768 self._writeInfoToPlist(info)
770 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
774 info = dict(fontInfoVersion3)
775 info["postscriptFontName"] = 123
776 self._writeInfoToPlist(info)
778 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
780 info = dict(fontInfoVersion3)
781 info["postscriptFullName"] = 123
782 self._writeInfoToPlist(info)
784 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
786 info = dict(fontInfoVersion3)
787 info["postscriptSlantAngle"] = "abc"
788 self._writeInfoToPlist(info)
790 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject())
792 info = dict(fontInfoVersion3)
793 info["postscriptUniqueID"] = "abc"
794 self._writeInfoToPlist(info)
798 info = dict(fontInfoVersion3)
799 info["postscriptUnderlineThickness"] = "abc"
800 self._writeInfoToPlist(info)
804 info = dict(fontInfoVersion3)
805 info["postscriptUnderlinePosition"] = "abc"
806 self._writeInfoToPlist(info)
810 info = dict(fontInfoVersion3)
811 info["postscriptIsFixedPitch"] = 2
812 self._writeInfoToPlist(info)
817 info = dict(fontInfoVersion3)
818 info["postscriptBlueValues"] = "abc"
819 self._writeInfoToPlist(info)
823 info = dict(fontInfoVersion3)
824 info["postscriptBlueValues"] = [500]
825 self._writeInfoToPlist(info)
829 info = dict(fontInfoVersion3)
830 …info["postscriptBlueValues"] = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, …
831 self._writeInfoToPlist(info)
836 info = dict(fontInfoVersion3)
837 info["postscriptOtherBlues"] = "abc"
838 self._writeInfoToPlist(info)
842 info = dict(fontInfoVersion3)
843 info["postscriptOtherBlues"] = [500]
844 self._writeInfoToPlist(info)
848 info = dict(fontInfoVersion3)
849 …info["postscriptOtherBlues"] = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, …
850 self._writeInfoToPlist(info)
855 info = dict(fontInfoVersion3)
856 info["postscriptFamilyBlues"] = "abc"
857 self._writeInfoToPlist(info)
861 info = dict(fontInfoVersion3)
862 info["postscriptFamilyBlues"] = [500]
863 self._writeInfoToPlist(info)
867 info = dict(fontInfoVersion3)
868 …info["postscriptFamilyBlues"] = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150,…
869 self._writeInfoToPlist(info)
874 info = dict(fontInfoVersion3)
875 info["postscriptFamilyOtherBlues"] = "abc"
876 self._writeInfoToPlist(info)
880 info = dict(fontInfoVersion3)
881 info["postscriptFamilyOtherBlues"] = [500]
882 self._writeInfoToPlist(info)
886 info = dict(fontInfoVersion3)
887 …info["postscriptFamilyOtherBlues"] = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140,…
888 self._writeInfoToPlist(info)
893 info = dict(fontInfoVersion3)
894 info["postscriptStemSnapH"] = "abc"
895 self._writeInfoToPlist(info)
899 info = dict(fontInfoVersion3)
900 …info["postscriptStemSnapH"] = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 1…
901 self._writeInfoToPlist(info)
906 info = dict(fontInfoVersion3)
907 info["postscriptStemSnapV"] = "abc"
908 self._writeInfoToPlist(info)
912 info = dict(fontInfoVersion3)
913 …info["postscriptStemSnapV"] = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 1…
914 self._writeInfoToPlist(info)
918 info = dict(fontInfoVersion3)
919 info["postscriptBlueFuzz"] = "abc"
920 self._writeInfoToPlist(info)
924 info = dict(fontInfoVersion3)
925 info["postscriptBlueShift"] = "abc"
926 self._writeInfoToPlist(info)
930 info = dict(fontInfoVersion3)
931 info["postscriptBlueScale"] = "abc"
932 self._writeInfoToPlist(info)
936 info = dict(fontInfoVersion3)
937 info["postscriptForceBold"] = "abc"
938 self._writeInfoToPlist(info)
942 info = dict(fontInfoVersion3)
943 info["postscriptDefaultWidthX"] = "abc"
944 self._writeInfoToPlist(info)
948 info = dict(fontInfoVersion3)
949 info["postscriptNominalWidthX"] = "abc"
950 self._writeInfoToPlist(info)
954 info = dict(fontInfoVersion3)
955 info["postscriptWeightName"] = 123
956 self._writeInfoToPlist(info)
960 info = dict(fontInfoVersion3)
961 info["postscriptDefaultCharacter"] = 123
962 self._writeInfoToPlist(info)
966 info = dict(fontInfoVersion3)
967 info["postscriptWindowsCharacterSet"] = -1
968 self._writeInfoToPlist(info)
972 info = dict(fontInfoVersion3)
973 info["macintoshFONDFamilyID"] = "abc"
974 self._writeInfoToPlist(info)
978 info = dict(fontInfoVersion3)
979 info["macintoshFONDName"] = 123
980 self._writeInfoToPlist(info)
986 info = dict(fontInfoVersion3)
987 info["woffMajorVersion"] = 1.0
988 self._writeInfoToPlist(info)
991 info = dict(fontInfoVersion3)
992 info["woffMajorVersion"] = "abc"
993 self._writeInfoToPlist(info)
997 info = dict(fontInfoVersion3)
998 info["woffMinorVersion"] = 1.0
999 self._writeInfoToPlist(info)
1002 info = dict(fontInfoVersion3)
1003 info["woffMinorVersion"] = "abc"
1004 self._writeInfoToPlist(info)
1009 info = dict(fontInfoVersion3)
1010 del info["woffMetadataUniqueID"]
1011 self._writeInfoToPlist(info)
1015 info = dict(fontInfoVersion3)
1016 info["woffMetadataUniqueID"] = 1
1017 self._writeInfoToPlist(info)
1021 info = dict(fontInfoVersion3)
1022 info["woffMetadataUniqueID"] = dict(id="foo", notTheRightKey=1)
1023 self._writeInfoToPlist(info)
1027 info = dict(fontInfoVersion3)
1028 info["woffMetadataUniqueID"] = dict()
1029 self._writeInfoToPlist(info)
1033 info = dict(fontInfoVersion3)
1034 info["woffMetadataUniqueID"] = dict(id=1)
1035 self._writeInfoToPlist(info)
1039 info = dict(fontInfoVersion3)
1040 info["woffMetadataUniqueID"] = dict(id="")
1041 self._writeInfoToPlist(info)
1046 info = dict(fontInfoVersion3)
1047 info["woffMetadataVendor"] = dict(url="foo")
1048 self._writeInfoToPlist(info)
1052 info = dict(fontInfoVersion3)
1053 info["woffMetadataVendor"] = dict(name=1, url="foo")
1054 self._writeInfoToPlist(info)
1058 info = dict(fontInfoVersion3)
1059 info["woffMetadataVendor"] = dict(name="", url="foo")
1060 self._writeInfoToPlist(info)
1064 info = dict(fontInfoVersion3)
1065 info["woffMetadataVendor"] = dict(name="foo")
1066 self._writeInfoToPlist(info)
1070 info = dict(fontInfoVersion3)
1071 info["woffMetadataVendor"] = dict(name="foo", url=1)
1072 self._writeInfoToPlist(info)
1076 info = dict(fontInfoVersion3)
1077 info["woffMetadataVendor"] = dict(name="foo", url="")
1078 self._writeInfoToPlist(info)
1082 info = dict(fontInfoVersion3)
1083 info["woffMetadataVendor"] = dict(name="foo", url="bar", dir="ltr")
1084 self._writeInfoToPlist(info)
1087 info = dict(fontInfoVersion3)
1088 info["woffMetadataVendor"] = dict(name="foo", url="bar", dir="rtl")
1089 self._writeInfoToPlist(info)
1093 info = dict(fontInfoVersion3)
1094 info["woffMetadataVendor"] = dict(name="foo", url="bar", dir=1)
1095 self._writeInfoToPlist(info)
1099 info = dict(fontInfoVersion3)
1100 info["woffMetadataVendor"] = dict(name="foo", url="bar", dir="utd")
1101 self._writeInfoToPlist(info)
1105 info = dict(fontInfoVersion3)
1106 info["woffMetadataVendor"] = {"name" : "foo", "url" : "bar", "class" : "hello"}
1107 self._writeInfoToPlist(info)
1111 info = dict(fontInfoVersion3)
1112 info["woffMetadataVendor"] = {"name" : "foo", "url" : "bar", "class" : 1}
1113 self._writeInfoToPlist(info)
1117 info = dict(fontInfoVersion3)
1118 info["woffMetadataVendor"] = {"name" : "foo", "url" : "bar", "class" : ""}
1119 self._writeInfoToPlist(info)
1124 info = dict(fontInfoVersion3)
1125 info["woffMetadataCredits"] = {}
1126 self._writeInfoToPlist(info)
1130 info = dict(fontInfoVersion3)
1131 info["woffMetadataCredits"] = dict(credits=[dict(name="foo")], notTheRightKey=1)
1132 self._writeInfoToPlist(info)
1136 info = dict(fontInfoVersion3)
1137 info["woffMetadataCredits"] = dict(credits="abc")
1138 self._writeInfoToPlist(info)
1142 info = dict(fontInfoVersion3)
1143 info["woffMetadataCredits"] = dict(credits=[])
1144 self._writeInfoToPlist(info)
1148 info = dict(fontInfoVersion3)
1149 info["woffMetadataCredits"] = dict(credits=["abc"])
1150 self._writeInfoToPlist(info)
1154 info = dict(fontInfoVersion3)
1155 info["woffMetadataCredits"] = dict(credits=[dict(name="foo", notTheRightKey=1)])
1156 self._writeInfoToPlist(info)
1160 info = dict(fontInfoVersion3)
1161 info["woffMetadataCredits"] = dict(credits=[dict(url="foo")])
1162 self._writeInfoToPlist(info)
1166 info = dict(fontInfoVersion3)
1167 info["woffMetadataCredits"] = dict(credits=[dict(name=1)])
1168 self._writeInfoToPlist(info)
1172 info = dict(fontInfoVersion3)
1173 info["woffMetadataCredits"] = dict(credits=[dict(name="foo", url=1)])
1174 self._writeInfoToPlist(info)
1178 info = dict(fontInfoVersion3)
1179 info["woffMetadataCredits"] = dict(credits=[dict(name="foo", role=1)])
1180 self._writeInfoToPlist(info)
1184 info = dict(fontInfoVersion3)
1185 info["woffMetadataCredits"] = dict(credits=[dict(name="foo", dir=1)])
1186 self._writeInfoToPlist(info)
1190 info = dict(fontInfoVersion3)
1191 info["woffMetadataCredits"] = dict(credits=[dict(name="foo", dir="utd")])
1192 self._writeInfoToPlist(info)
1196 info = dict(fontInfoVersion3)
1197 info["woffMetadataCredits"] = dict(credits=[{"name" : "foo", "class" : 1}])
1198 self._writeInfoToPlist(info)
1203 info = dict(fontInfoVersion3)
1204 info["woffMetadataDescription"] = dict(text=[dict(text="foo")])
1205 self._writeInfoToPlist(info)
1209 info = dict(fontInfoVersion3)
1210 info["woffMetadataDescription"] = dict(text=[dict(text="foo")], url=1)
1211 self._writeInfoToPlist(info)
1215 info = dict(fontInfoVersion3)
1216 info["woffMetadataDescription"] = dict(url="foo")
1217 self._writeInfoToPlist(info)
1221 info = dict(fontInfoVersion3)
1222 info["woffMetadataDescription"] = dict(text="abc")
1223 self._writeInfoToPlist(info)
1227 info = dict(fontInfoVersion3)
1228 info["woffMetadataDescription"] = dict(text=["abc"])
1229 self._writeInfoToPlist(info)
1233 info = dict(fontInfoVersion3)
1234 info["woffMetadataDescription"] = dict(text=[dict(text="foo", notTheRightKey=1)])
1235 self._writeInfoToPlist(info)
1239 info = dict(fontInfoVersion3)
1240 info["woffMetadataDescription"] = dict(text=[dict(language="foo")])
1241 self._writeInfoToPlist(info)
1245 info = dict(fontInfoVersion3)
1246 info["woffMetadataDescription"] = dict(text=[dict(text=1)])
1247 self._writeInfoToPlist(info)
1251 info = dict(fontInfoVersion3)
1252 info["woffMetadataDescription"] = dict(text=[dict(text="foo", url=1)])
1253 self._writeInfoToPlist(info)
1257 info = dict(fontInfoVersion3)
1258 info["woffMetadataDescription"] = dict(text=[dict(text="foo", language=1)])
1259 self._writeInfoToPlist(info)
1263 info = dict(fontInfoVersion3)
1264 info["woffMetadataDescription"] = dict(text=[dict(text="foo", dir="utd")])
1265 self._writeInfoToPlist(info)
1269 info = dict(fontInfoVersion3)
1270 info["woffMetadataDescription"] = dict(text=[{"text" : "foo", "class" : 1}])
1271 self._writeInfoToPlist(info)
1276 info = dict(fontInfoVersion3)
1277 info["woffMetadataLicense"] = dict(text=[dict(text="foo")])
1278 self._writeInfoToPlist(info)
1282 info = dict(fontInfoVersion3)
1283 info["woffMetadataLicense"] = dict(text=[dict(text="foo")], url=1)
1284 self._writeInfoToPlist(info)
1288 info = dict(fontInfoVersion3)
1289 info["woffMetadataLicense"] = dict(text=[dict(text="foo")], id=1)
1290 self._writeInfoToPlist(info)
1294 info = dict(fontInfoVersion3)
1295 info["woffMetadataLicense"] = dict(url="foo")
1296 self._writeInfoToPlist(info)
1300 info = dict(fontInfoVersion3)
1301 info["woffMetadataLicense"] = dict(text="abc")
1302 self._writeInfoToPlist(info)
1306 info = dict(fontInfoVersion3)
1307 info["woffMetadataLicense"] = dict(text=["abc"])
1308 self._writeInfoToPlist(info)
1312 info = dict(fontInfoVersion3)
1313 info["woffMetadataLicense"] = dict(text=[dict(text="foo", notTheRightKey=1)])
1314 self._writeInfoToPlist(info)
1318 info = dict(fontInfoVersion3)
1319 info["woffMetadataLicense"] = dict(text=[dict(language="foo")])
1320 self._writeInfoToPlist(info)
1324 info = dict(fontInfoVersion3)
1325 info["woffMetadataLicense"] = dict(text=[dict(text=1)])
1326 self._writeInfoToPlist(info)
1330 info = dict(fontInfoVersion3)
1331 info["woffMetadataLicense"] = dict(text=[dict(text="foo", url=1)])
1332 self._writeInfoToPlist(info)
1336 info = dict(fontInfoVersion3)
1337 info["woffMetadataLicense"] = dict(text=[dict(text="foo", language=1)])
1338 self._writeInfoToPlist(info)
1342 info = dict(fontInfoVersion3)
1343 info["woffMetadataLicense"] = dict(text=[dict(text="foo", dir="utd")])
1344 self._writeInfoToPlist(info)
1348 info = dict(fontInfoVersion3)
1349 info["woffMetadataLicense"] = dict(text=[{"text" : "foo", "class" : 1}])
1350 self._writeInfoToPlist(info)
1355 info = dict(fontInfoVersion3)
1356 info["woffMetadataCopyright"] = dict(text=[dict(text="foo")], notTheRightKey=1)
1357 self._writeInfoToPlist(info)
1361 info = dict(fontInfoVersion3)
1362 info["woffMetadataCopyright"] = dict()
1363 self._writeInfoToPlist(info)
1367 info = dict(fontInfoVersion3)
1368 info["woffMetadataCopyright"] = dict(text="abc")
1369 self._writeInfoToPlist(info)
1373 info = dict(fontInfoVersion3)
1374 info["woffMetadataCopyright"] = dict(text=["abc"])
1375 self._writeInfoToPlist(info)
1379 info = dict(fontInfoVersion3)
1380 info["woffMetadataCopyright"] = dict(text=[dict(text="foo", notTheRightKey=1)])
1381 self._writeInfoToPlist(info)
1385 info = dict(fontInfoVersion3)
1386 info["woffMetadataCopyright"] = dict(text=[dict(language="foo")])
1387 self._writeInfoToPlist(info)
1391 info = dict(fontInfoVersion3)
1392 info["woffMetadataCopyright"] = dict(text=[dict(text=1)])
1393 self._writeInfoToPlist(info)
1397 info = dict(fontInfoVersion3)
1398 info["woffMetadataCopyright"] = dict(text=[dict(text="foo", url=1)])
1399 self._writeInfoToPlist(info)
1403 info = dict(fontInfoVersion3)
1404 info["woffMetadataCopyright"] = dict(text=[dict(text="foo", language=1)])
1405 self._writeInfoToPlist(info)
1409 info = dict(fontInfoVersion3)
1410 info["woffMetadataCopyright"] = dict(text=[dict(text="foo", dir="utd")])
1411 self._writeInfoToPlist(info)
1415 info = dict(fontInfoVersion3)
1416 info["woffMetadataCopyright"] = dict(text=[{"text" : "foo", "class" : 1}])
1417 self._writeInfoToPlist(info)
1422 info = dict(fontInfoVersion3)
1423 info["woffMetadataTrademark"] = dict(text=[dict(text="foo")], notTheRightKey=1)
1424 self._writeInfoToPlist(info)
1428 info = dict(fontInfoVersion3)
1429 info["woffMetadataTrademark"] = dict()
1430 self._writeInfoToPlist(info)
1434 info = dict(fontInfoVersion3)
1435 info["woffMetadataTrademark"] = dict(text="abc")
1436 self._writeInfoToPlist(info)
1440 info = dict(fontInfoVersion3)
1441 info["woffMetadataTrademark"] = dict(text=["abc"])
1442 self._writeInfoToPlist(info)
1446 info = dict(fontInfoVersion3)
1447 info["woffMetadataTrademark"] = dict(text=[dict(text="foo", notTheRightKey=1)])
1448 self._writeInfoToPlist(info)
1452 info = dict(fontInfoVersion3)
1453 info["woffMetadataTrademark"] = dict(text=[dict(language="foo")])
1454 self._writeInfoToPlist(info)
1458 info = dict(fontInfoVersion3)
1459 info["woffMetadataTrademark"] = dict(text=[dict(text=1)])
1460 self._writeInfoToPlist(info)
1464 info = dict(fontInfoVersion3)
1465 info["woffMetadataTrademark"] = dict(text=[dict(text="foo", url=1)])
1466 self._writeInfoToPlist(info)
1470 info = dict(fontInfoVersion3)
1471 info["woffMetadataTrademark"] = dict(text=[dict(text="foo", language=1)])
1472 self._writeInfoToPlist(info)
1476 info = dict(fontInfoVersion3)
1477 info["woffMetadataTrademark"] = dict(text=[dict(text="foo", dir="utd")])
1478 self._writeInfoToPlist(info)
1482 info = dict(fontInfoVersion3)
1483 info["woffMetadataTrademark"] = dict(text=[{"text" : "foo", "class" : 1}])
1484 self._writeInfoToPlist(info)
1489 info = dict(fontInfoVersion3)
1490 info["woffMetadataLicensee"] = dict()
1491 self._writeInfoToPlist(info)
1495 info = dict(fontInfoVersion3)
1496 info["woffMetadataLicensee"] = dict(name="foo", notTheRightKey=1)
1497 self._writeInfoToPlist(info)
1501 info = dict(fontInfoVersion3)
1502 info["woffMetadataLicensee"] = dict(name=1)
1503 self._writeInfoToPlist(info)
1507 info = dict(fontInfoVersion3)
1508 info["woffMetadataLicensee"] = dict(name="foo", dir="ltr")
1509 self._writeInfoToPlist(info)
1512 info = dict(fontInfoVersion3)
1513 info["woffMetadataLicensee"] = dict(name="foo", dir="rtl")
1514 self._writeInfoToPlist(info)
1518 info = dict(fontInfoVersion3)
1519 info["woffMetadataLicensee"] = dict(name="foo", dir="utd")
1520 self._writeInfoToPlist(info)
1524 info = dict(fontInfoVersion3)
1525 info["woffMetadataLicensee"] = {"name" : "foo", "class" : "hello"}
1526 self._writeInfoToPlist(info)
1530 info = dict(fontInfoVersion3)
1531 info["woffMetadataLicensee"] = {"name" : "foo", "class" : 1}
1532 self._writeInfoToPlist(info)
1539 info = dict(fontInfoVersion3)
1540 info["guidelines"] = [dict(x="1")]
1541 self._writeInfoToPlist(info)
1546 info = dict(fontInfoVersion3)
1547 info["guidelines"] = [dict(y="1")]
1548 self._writeInfoToPlist(info)
1553 info = dict(fontInfoVersion3)
1554 info["guidelines"] = [dict(x=0, y=0, angle=-1)]
1555 self._writeInfoToPlist(info)
1559 info = dict(fontInfoVersion3)
1560 info["guidelines"] = [dict(x=0, y=0, angle=361)]
1561 self._writeInfoToPlist(info)
1566 info = dict(fontInfoVersion3)
1567 info["guidelines"] = [dict(x=0, name=1)]
1568 self._writeInfoToPlist(info)
1573 info = dict(fontInfoVersion3)
1574 info["guidelines"] = [dict(x=0, color=1)]
1575 self._writeInfoToPlist(info)
1579 info = dict(fontInfoVersion3)
1580 info["guidelines"] = [dict(x=0, color="1 0, 0, 0")]
1581 self._writeInfoToPlist(info)
1584 info = dict(fontInfoVersion3)
1585 info["guidelines"] = [dict(x=0, color="1 0 0, 0")]
1586 self._writeInfoToPlist(info)
1589 info = dict(fontInfoVersion3)
1590 info["guidelines"] = [dict(x=0, color="1 0 0 0")]
1591 self._writeInfoToPlist(info)
1595 info = dict(fontInfoVersion3)
1596 info["guidelines"] = [dict(x=0, color=", 0, 0, 0")]
1597 self._writeInfoToPlist(info)
1600 info = dict(fontInfoVersion3)
1601 info["guidelines"] = [dict(x=0, color="1, , 0, 0")]
1602 self._writeInfoToPlist(info)
1605 info = dict(fontInfoVersion3)
1606 info["guidelines"] = [dict(x=0, color="1, 0, , 0")]
1607 self._writeInfoToPlist(info)
1610 info = dict(fontInfoVersion3)
1611 info["guidelines"] = [dict(x=0, color="1, 0, 0, ")]
1612 self._writeInfoToPlist(info)
1615 info = dict(fontInfoVersion3)
1616 info["guidelines"] = [dict(x=0, color=", , , ")]
1617 self._writeInfoToPlist(info)
1621 info = dict(fontInfoVersion3)
1622 info["guidelines"] = [dict(x=0, color="r, 1, 1, 1")]
1623 self._writeInfoToPlist(info)
1626 info = dict(fontInfoVersion3)
1627 info["guidelines"] = [dict(x=0, color="1, g, 1, 1")]
1628 self._writeInfoToPlist(info)
1631 info = dict(fontInfoVersion3)
1632 info["guidelines"] = [dict(x=0, color="1, 1, b, 1")]
1633 self._writeInfoToPlist(info)
1636 info = dict(fontInfoVersion3)
1637 info["guidelines"] = [dict(x=0, color="1, 1, 1, a")]
1638 self._writeInfoToPlist(info)
1642 info = dict(fontInfoVersion3)
1643 info["guidelines"] = [dict(x=0, color="1, 0, 0, 0, 0")]
1644 self._writeInfoToPlist(info)
1648 info = dict(fontInfoVersion3)
1649 info["guidelines"] = [dict(x=0, color="-1, 0, 0, 0")]
1650 self._writeInfoToPlist(info)
1653 info = dict(fontInfoVersion3)
1654 info["guidelines"] = [dict(x=0, color="0, -1, 0, 0")]
1655 self._writeInfoToPlist(info)
1658 info = dict(fontInfoVersion3)
1659 info["guidelines"] = [dict(x=0, color="0, 0, -1, 0")]
1660 self._writeInfoToPlist(info)
1663 info = dict(fontInfoVersion3)
1664 info["guidelines"] = [dict(x=0, color="0, 0, 0, -1")]
1665 self._writeInfoToPlist(info)
1669 info = dict(fontInfoVersion3)
1670 info["guidelines"] = [dict(x=0, color="2, 0, 0, 0")]
1671 self._writeInfoToPlist(info)
1674 info = dict(fontInfoVersion3)
1675 info["guidelines"] = [dict(x=0, color="0, 2, 0, 0")]
1676 self._writeInfoToPlist(info)
1679 info = dict(fontInfoVersion3)
1680 info["guidelines"] = [dict(x=0, color="0, 0, 2, 0")]
1681 self._writeInfoToPlist(info)
1684 info = dict(fontInfoVersion3)
1685 info["guidelines"] = [dict(x=0, color="0, 0, 0, 2")]
1686 self._writeInfoToPlist(info)
1691 info = dict(fontInfoVersion3)
1692 info["guidelines"] = [dict(x=0, identifier="guide1"), dict(y=0, identifier="guide1")]
1693 self._writeInfoToPlist(info)
1739 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1745 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1751 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1758 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1764 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1770 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1776 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1782 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1788 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1794 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1800 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1806 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1812 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1818 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1824 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1832 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1844 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1850 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1855 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1861 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1867 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1873 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1879 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1894 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1900 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1906 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1912 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1920 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1926 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1932 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1938 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1944 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1950 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1958 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1964 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1970 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1976 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1982 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1988 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
1994 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2000 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2006 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2012 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2018 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2024 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2030 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2036 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2042 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2049 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2055 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2061 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2069 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2076 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2083 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2090 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2097 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2104 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2112 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2119 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2126 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2133 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2140 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2157 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2163 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2170 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2176 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2182 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2188 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2195 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2201 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2207 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2214 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2220 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2226 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2232 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2239 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2245 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2252 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2258 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2264 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2270 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2276 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2282 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2287 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2293 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2298 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2305 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2311 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2317 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2323 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2329 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2335 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2341 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2347 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2353 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2359 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2365 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2371 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2379 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2385 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2391 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2397 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2403 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2409 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2417 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2423 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2431 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2437 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2443 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2449 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2455 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2461 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2467 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2474 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2480 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2486 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2493 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2499 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2505 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2512 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2518 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2524 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2531 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2537 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2543 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2550 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2556 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2563 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2569 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2575 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2581 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2587 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2593 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2599 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2605 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2611 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2617 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2623 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2629 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2635 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2643 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2648 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2654 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2659 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2672 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2678 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2684 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2690 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2703 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2709 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2727 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2750 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2756 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2768 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2781 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2787 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2793 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2799 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2805 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2811 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2817 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2823 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2829 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2835 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2841 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2847 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2853 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2866 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2872 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2878 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2884 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2890 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2896 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2902 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2908 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2914 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2920 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2926 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2939 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2945 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2957 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2963 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2969 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2975 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2981 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2987 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2993 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
2999 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3005 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3012 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3018 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3024 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3030 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3036 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3041 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3047 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3053 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3059 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3065 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3071 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3078 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3084 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3090 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3096 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3102 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3108 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3114 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3120 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3126 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3132 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3138 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3145 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3151 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3157 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3174 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3186 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3195 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3202 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3209 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3215 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3222 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3229 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3235 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3240 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3245 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3251 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3256 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3261 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3266 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3271 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3277 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3282 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3287 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3292 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3298 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3304 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3309 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3314 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3319 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3325 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3330 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3335 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3340 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3347 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3353 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
3359 self.assertRaises(UFOLibError, writer.writeInfo, info=infoObject)
4371 info = TestLayerInfoObject()
4372 glyphSet.readLayerInfo(info)
4374 self.assertEqual(expectedColor, info.color)
4376 self.assertEqual(expectedLib, info.lib)
4385 info = TestLayerInfoObject()
4386 glyphSet.readLayerInfo(info)
4387 self.assertEqual(None, info.color)
4388 self.assertEqual(None, info.guidelines)
4389 self.assertEqual(None, info.lib)
4400 info = TestLayerInfoObject()
4401 self.assertRaises(UFOLibError, glyphSet.readLayerInfo, info)
4406 info = [("color", "0,0,0,0")]
4408 plistlib.dump(info, f)
4412 info = TestLayerInfoObject()
4413 self.assertRaises(GlifLibError, glyphSet.readLayerInfo, info)
4417 info = {}
4418 info["color"] = 1
4419 self.makeUFO(layerInfo=info)
4424 info = {}
4425 info["color"] = "1 0, 0, 0"
4426 self.makeUFO(layerInfo=info)
4430 info = {}
4431 info["color"] = "1 0 0, 0"
4432 self.makeUFO(layerInfo=info)
4436 info = {}
4437 info["color"] = "1 0 0 0"
4438 self.makeUFO(layerInfo=info)
4443 info = {}
4444 info["color"] = ", 0, 0, 0"
4445 self.makeUFO(layerInfo=info)
4449 info = {}
4450 info["color"] = "1, , 0, 0"
4451 self.makeUFO(layerInfo=info)
4455 info = {}
4456 info["color"] = "1, 0, , 0"
4457 self.makeUFO(layerInfo=info)
4461 info = {}
4462 info["color"] = "1, 0, 0, "
4463 self.makeUFO(layerInfo=info)
4467 info = {}
4468 info["color"] = ", , , "
4469 self.makeUFO(layerInfo=info)
4474 info = {}
4475 info["color"] = "r, 1, 1, 1"
4476 self.makeUFO(layerInfo=info)
4480 info = {}
4481 info["color"] = "1, g, 1, 1"
4482 self.makeUFO(layerInfo=info)
4486 info = {}
4487 info["color"] = "1, 1, b, 1"
4488 self.makeUFO(layerInfo=info)
4492 info = {}
4493 info["color"] = "1, 1, 1, a"
4494 self.makeUFO(layerInfo=info)
4499 info = {}
4500 info["color"] = "1, 0, 0, 0, 0"
4501 self.makeUFO(layerInfo=info)
4506 info = {}
4507 info["color"] = "-1, 0, 0, 0"
4508 self.makeUFO(layerInfo=info)
4512 info = {}
4513 info["color"] = "0, -1, 0, 0"
4514 self.makeUFO(layerInfo=info)
4518 info = {}
4519 info["color"] = "0, 0, -1, 0"
4520 self.makeUFO(layerInfo=info)
4524 info = {}
4525 info["color"] = "0, 0, 0, -1"
4526 self.makeUFO(layerInfo=info)
4531 info = {}
4532 info["color"] = "2, 0, 0, 0"
4533 self.makeUFO(layerInfo=info)
4537 info = {}
4538 info["color"] = "0, 2, 0, 0"
4539 self.makeUFO(layerInfo=info)
4543 info = {}
4544 info["color"] = "0, 0, 2, 0"
4545 self.makeUFO(layerInfo=info)
4549 info = {}
4550 info["color"] = "0, 0, 0, 2"
4551 self.makeUFO(layerInfo=info)
4581 info = TestLayerInfoObject()
4582 info.color = expected["color"]
4583 info.lib = expected["lib"]
4585 glyphSet.writeLayerInfo(info)
4593 info = TestLayerInfoObject()
4594 info.color = 1
4596 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4598 info = TestLayerInfoObject()
4599 info.color = "1 0, 0, 0"
4601 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4602 info = TestLayerInfoObject()
4603 info.color = "1 0 0, 0"
4605 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4606 info = TestLayerInfoObject()
4607 info.color = "1 0 0 0"
4609 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4611 info = TestLayerInfoObject()
4612 info.color = ", 0, 0, 0"
4614 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4615 info = TestLayerInfoObject()
4616 info.color = "1, , 0, 0"
4618 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4619 info = TestLayerInfoObject()
4620 info.color = "1, 0, , 0"
4622 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4623 info = TestLayerInfoObject()
4624 info.color = "1, 0, 0, "
4626 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4627 info = TestLayerInfoObject()
4628 info.color = ", , , "
4630 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4632 info = TestLayerInfoObject()
4633 info.color = "r, 1, 1, 1"
4635 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4636 info = TestLayerInfoObject()
4637 info.color = "1, g, 1, 1"
4639 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4640 info = TestLayerInfoObject()
4641 info.color = "1, 1, b, 1"
4643 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4644 info = TestLayerInfoObject()
4645 info.color = "1, 1, 1, a"
4647 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4649 info = TestLayerInfoObject()
4650 info.color = "1, 0, 0, 0, 0"
4652 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4654 info = TestLayerInfoObject()
4655 info.color = "-1, 0, 0, 0"
4657 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4658 info = TestLayerInfoObject()
4659 info.color = "0, -1, 0, 0"
4661 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4662 info = TestLayerInfoObject()
4663 info.color = "0, 0, -1, 0"
4665 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4666 info = TestLayerInfoObject()
4667 info.color = "0, 0, 0, -1"
4669 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4671 info = TestLayerInfoObject()
4672 info.color = "2, 0, 0, 0"
4674 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4675 info = TestLayerInfoObject()
4676 info.color = "0, 2, 0, 0"
4678 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4679 info = TestLayerInfoObject()
4680 info.color = "0, 0, 2, 0"
4682 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)
4683 info = TestLayerInfoObject()
4684 info.color = "0, 0, 0, 2"
4686 self.assertRaises(GlifLibError, glyphSet.writeLayerInfo, info)