Lines Matching refs:GlifLibError

25 from fontTools.ufoLib.errors import GlifLibError
131 raise GlifLibError("Unsupported UFO format version: %s" % ufoFormatVersion)
136 raise GlifLibError("No glyphs directory '%s'" % path)
143 raise GlifLibError("the filesystem '%s' is closed" % filesystem)
195 raise GlifLibError(
200 raise GlifLibError("%s is not properly formatted" % CONTENTS_FILENAME)
240 raise GlifLibError("layerinfo.plist is not properly formatted.")
247 …raise GlifLibError("The supplied layer info object does not support setting a necessary attribute …
257 raise GlifLibError("layerinfo.plist is not allowed in UFO %d." % self.ufoFormatVersion)
265 …raise GlifLibError("The supplied info object does not support getting a necessary attribute (%s)."…
295 raise GlifLibError(
394 raise GlifLibError("Unsupported GLIF format version: %s" % formatVersion)
396 raise GlifLibError(
582 raise GlifLibError("The glyph name is not properly formatted.")
584 raise GlifLibError("The glyph name is empty.")
668 raise GlifLibError("width attribute must be int or float")
674 raise GlifLibError("height attribute must be int or float")
691 raise GlifLibError("unicode values must be int")
701 raise GlifLibError("note attribute must be str or unicode")
710 …raise GlifLibError("image attribute must be a dict or dict-like object with the proper structure.")
724 raise GlifLibError("guidelines attribute does not have the proper structure.")
745 raise GlifLibError("identifier used more than once: %s" % identifier)
752 raise GlifLibError("anchors attribute does not have the proper structure.")
769 raise GlifLibError("anchors attribute does not have the proper structure.")
785 raise GlifLibError("identifier used more than once: %s" % identifier)
798 raise GlifLibError(message)
853 raise GlifLibError("Unknown attribute %s." % attr)
856 raise GlifLibError("Invalid value for attribute %s (%s)." % (attr, repr(value)))
866 raise GlifLibError("The GLIF is not properly formatted.")
868 raise GlifLibError("Invalid GLIF structure.")
876 raise GlifLibError("The GLIF is not properly formatted.")
878 raise GlifLibError("Invalid GLIF structure.")
885 raise GlifLibError("Unspecified format version in GLIF.")
892 raise GlifLibError("Forbidden GLIF format version: %s" % formatVersion)
898 raise GlifLibError("Unsupported GLIF format version: %s" % formatVersion)
911 raise GlifLibError("The outline element occurs more than once.")
913 raise GlifLibError("The outline element contains unknown attributes.")
915 raise GlifLibError("Invalid outline structure.")
922 raise GlifLibError("The advance element occurs more than once.")
932 raise GlifLibError("Illegal value for hex attribute of unicode element.")
935 raise GlifLibError("The note element occurs more than once.")
940 raise GlifLibError("The lib element occurs more than once.")
944 raise GlifLibError("Unknown element in GLIF: %s" % element)
962 raise GlifLibError("The outline element occurs more than once.")
964 raise GlifLibError("The outline element contains unknown attributes.")
966 raise GlifLibError("Invalid outline structure.")
974 raise GlifLibError("The advance element occurs more than once.")
984 raise GlifLibError("Illegal value for hex attribute of unicode element.")
987 raise GlifLibError("Unknown children in guideline element.")
995 raise GlifLibError("Unknown children in anchor element.")
1004 raise GlifLibError("The image element occurs more than once.")
1006 raise GlifLibError("Unknown children in image element.")
1011 raise GlifLibError("The note element occurs more than once.")
1016 raise GlifLibError("The lib element occurs more than once.")
1020 raise GlifLibError("Unknown element in GLIF: %s" % element)
1027 raise GlifLibError("The guidelines are improperly formatted.")
1032 raise GlifLibError("The anchors are improperly formatted.")
1038 raise GlifLibError("Empty glyph name in GLIF.")
1060 raise GlifLibError(message)
1069 raise GlifLibError("The image element is not properly formatted.")
1103 raise GlifLibError("Unknown element in outline element: %s" % element)
1106 raise GlifLibError("GLIF 1 anchors are not properly formatted.")
1118 raise GlifLibError("Required x attribute is missing in point element.")
1120 raise GlifLibError("Required y attribute is missing in point element.")
1128 raise GlifLibError("Unknown attributes in contour element.")
1147 raise GlifLibError("Unknown child elements of component element.")
1150 raise GlifLibError("Unknown attribute in component element: %s" % attr)
1153 raise GlifLibError("The base attribute is not defined in the component.")
1173 raise GlifLibError("Unknown element in outline element: %s" % element.tag)
1179 raise GlifLibError("Unknown attribute in contour element: %s" % attr)
1184 raise GlifLibError("The identifier %s is used more than once." % identifier)
1186 raise GlifLibError("The contour identifier %s is not valid." % identifier)
1209 raise GlifLibError("The identifier %s is used more than once." % identifier)
1211 raise GlifLibError("The identifier %s is not valid." % identifier)
1222 raise GlifLibError("Unknown child elements of component element.")
1225 raise GlifLibError("Unknown attribute in component element: %s" % attr)
1228 raise GlifLibError("The base attribute is not defined in the component.")
1241 raise GlifLibError("The identifier %s is used more than once." % identifier)
1243 raise GlifLibError("The identifier %s is not valid." % identifier)
1264 raise GlifLibError("Unknown child element (%s) of contour element." % element.tag)
1271 raise GlifLibError("Unknown attribute in point element: %s" % attr)
1274 raise GlifLibError("Unknown child elements in point element.")
1279 raise GlifLibError("Required %s attribute is missing in point element." % attr)
1284 raise GlifLibError("Unknown point type: %s" % pointType)
1294 raise GlifLibError("A move point occurs after the first point in the contour.")
1299 raise GlifLibError("Unknown point smooth value: %s" % smooth)
1304 raise GlifLibError("smooth attribute set in an offcurve point.")
1334 raise GlifLibError("move can not have an offcurve.")
1336 raise GlifLibError("line can not have an offcurve.")
1339 raise GlifLibError("Too many offcurves defined for curve.")
1382 raise GlifLibError("Could not convert %s to an int or float." % s)
1533 raise GlifLibError("identifier used more than once: %s" % identifier)
1535 raise GlifLibError("identifier not formatted properly: %s" % identifier)
1544 raise GlifLibError("open contour has loose offcurve point")
1560 raise GlifLibError("coordinates must be int or float")
1568 raise GlifLibError("move occurs after a point has already been added to the contour.")
1570 raise GlifLibError("offcurve occurs before %s point." % segmentType)
1572 raise GlifLibError("too many offcurve points before curve point.")
1585 raise GlifLibError("can't set smooth in an offcurve point.")
1594 raise GlifLibError("identifier used more than once: %s" % identifier)
1596 raise GlifLibError("identifier not formatted properly: %s" % identifier)
1605 raise GlifLibError("transformation values must be int or float")
1611 raise GlifLibError("identifier used more than once: %s" % identifier)
1613 raise GlifLibError("identifier not formatted properly: %s" % identifier)