1.. highlight:: python 2.. module:: fontParts.base 3 4####### 5Segment 6####### 7 8*********** 9Description 10*********** 11 12A :class:`Contour <BaseContour>` object is a list of segments. A :class:`Segment <BaseSegment>` is a list of points with some special attributes and methods. 13 14******** 15Overview 16******** 17 18Parents 19======= 20 21.. autosummary:: 22 :nosignatures: 23 24 BaseSegment.contour 25 BaseSegment.glyph 26 BaseSegment.layer 27 BaseSegment.font 28 29Identification 30============== 31 32.. autosummary:: 33 :nosignatures: 34 35 BaseSegment.index 36 37Attributes 38========== 39 40.. autosummary:: 41 :nosignatures: 42 43 BaseSegment.type 44 BaseSegment.smooth 45 46Points 47====== 48 49.. autosummary:: 50 :nosignatures: 51 52 BaseSegment.points 53 BaseSegment.onCurve 54 BaseSegment.offCurve 55 56Transformations 57=============== 58 59.. autosummary:: 60 :nosignatures: 61 62 BaseSegment.transformBy 63 BaseSegment.moveBy 64 BaseSegment.scaleBy 65 BaseSegment.rotateBy 66 BaseSegment.skewBy 67 68Normalization 69============= 70 71.. autosummary:: 72 :nosignatures: 73 74 BaseSegment.round 75 76Environment 77=========== 78 79.. autosummary:: 80 :nosignatures: 81 82 BaseSegment.naked 83 BaseSegment.changed 84 85********* 86Reference 87********* 88 89.. autoclass:: BaseSegment 90 91Parents 92======= 93 94.. autoattribute:: BaseSegment.contour 95.. autoattribute:: BaseSegment.glyph 96.. autoattribute:: BaseSegment.layer 97.. autoattribute:: BaseSegment.font 98 99Identification 100============== 101 102.. autoattribute:: BaseSegment.index 103 104Attributes 105========== 106 107.. autoattribute:: BaseSegment.type 108.. autoattribute:: BaseSegment.smooth 109 110Points 111====== 112 113.. autoattribute:: BaseSegment.points 114.. autoattribute:: BaseSegment.onCurve 115.. autoattribute:: BaseSegment.offCurve 116 117Transformations 118=============== 119 120.. automethod:: BaseSegment.transformBy 121.. automethod:: BaseSegment.moveBy 122.. automethod:: BaseSegment.scaleBy 123.. automethod:: BaseSegment.rotateBy 124.. automethod:: BaseSegment.skewBy 125 126Normalization 127============= 128 129.. automethod:: BaseSegment.round 130 131Environment 132=========== 133 134.. automethod:: BaseSegment.naked 135.. automethod:: BaseSegment.changed 136 137