fgFontGateData
fontgate.fgFontGateData = class fgFontGateData(object)
FontGateData representation Constructors: fgFontGateData() - default fgFontGateData(fgFontGateData) - copy
Methods
- __delattr__(...)
-
x.__delattr__('name') <==> del x.name
- __getattribute__(...)
-
x.__getattribute__('name') <==> x.name
- __setattr__(...)
-
x.__setattr__('name', value) <==> x.name = value
- activeLayer(...)
-
fgLayer activeLayer() - get active layer or Nothing if no layers exists
- addContour(...)
-
fgContour addContour(fgContour) - add contour into 'Body' layer
- bodyLayer(...)
-
fgLayer bodyLayer() - get layer named 'Body', any existing non-service layer if not found or Nothing if no layers exists
- bodyLayerStrict(...)
-
fgLayer bodyLayerStrict() - get layer named 'Body'. if it's not present, create it on the fly
- boundingBox(...)
-
fgRect boundingBox(fgGlyphsR, fgMatrix, bool prepareExport) - calculate bounding box
- checkContours(...)
-
checkContours() - ckeck for multi-segment contours and split it into one segment's contours
- countNodesContours(...)
-
(nodesCount, contoursCount) countNodesContours() - calculate stats for 'Body' layer if it present, return (0,0) otherwise
- countPictures(...)
-
int countPictures() - return pictures count
- countShapes(...)
-
int countShapes() - return shapes count
- getFontGateData(...)
-
fgFontGateData getFontGateData() - return self
- hasPictures(...)
-
bool hasPictures() - return true if pictures is present
Descriptors
- layers
-
(fgLayers) layers list
Attributes
- __new__ = <built-in method __new__ of type object>
-
T.__new__(S, ...) -> a new object with type S, a subtype of T
activeLayer
- fontgate.fgFontGateData.activeLayer = activeLayer(...)
-
fgLayer activeLayer() - get active layer or Nothing if no layers exists
addContour
- fontgate.fgFontGateData.addContour = addContour(...)
-
fgContour addContour(fgContour) - add contour into 'Body' layer
addShape
- fontgate.fgFontGateData.addShape = addShape(...)
-
fgShape addShape(fgShape) - add shape into 'Body' layer
bad
- fontgate.fgFontGateData.bad = bad(...)
-
bool bad() - return true if status isn't gdsOK
bodyLayer
- fontgate.fgFontGateData.bodyLayer = bodyLayer(...)
-
fgLayer bodyLayer() - get layer named 'Body', any existing non-service layer if not found or Nothing if no layers exists
bodyLayerStrict
- fontgate.fgFontGateData.bodyLayerStrict = bodyLayerStrict(...)
-
fgLayer bodyLayerStrict() - get layer named 'Body'. if it's not present, create it on the fly
boundingBox
- fontgate.fgFontGateData.boundingBox = boundingBox(...)
-
fgRect boundingBox(fgGlyphsR, fgMatrix, bool prepareExport) - calculate bounding box
checkContours
- fontgate.fgFontGateData.checkContours = checkContours(...)
-
checkContours() - ckeck for multi-segment contours and split it into one segment's contours
copy
- fontgate.fgFontGateData.copy = copy(...)
-
fgFontGateData copy() - create alone copy of data
countNodesContours
- fontgate.fgFontGateData.countNodesContours = countNodesContours(...)
-
(nodesCount, contoursCount) countNodesContours() - calculate stats for 'Body' layer if it present, return (0,0) otherwise
countPictures
- fontgate.fgFontGateData.countPictures = countPictures(...)
-
int countPictures() - return pictures count
countShapes
- fontgate.fgFontGateData.countShapes = countShapes(...)
-
int countShapes() - return shapes count
findLayer
- fontgate.fgFontGateData.findLayer = findLayer(...)
-
fgLayer findLayer('name') - get layer by name, return Nothing if no layer found
getFontGateData
- fontgate.fgFontGateData.getFontGateData = getFontGateData(...)
-
fgFontGateData getFontGateData() - return self
getType
- fontgate.fgFontGateData.getType = getType(...)
-
string getType() - return 'dtFontGate'
hasBody
- fontgate.fgFontGateData.hasBody = hasBody(...)
-
bool hasBody(bool prepareExport) - return true if non-empty body layer is present
hasColors
- fontgate.fgFontGateData.hasColors = hasColors(...)
-
bool hasColors() - return true if colors is present
hasHints
- fontgate.fgFontGateData.hasHints = hasHints(...)
-
bool hasHints() - return true if hints is present
hasPictures
- fontgate.fgFontGateData.hasPictures = hasPictures(...)
-
bool hasPictures() - return true if pictures is present
layers
- fontgate.fgFontGateData.layers
-
(fgLayers) layers list
maskLayer
- fontgate.fgFontGateData.maskLayer = maskLayer(...)
-
fgLayer maskLayer(bool createIfMissing)
modified
- fontgate.fgFontGateData.modified = modified(...)
-
bool modified() - return true if data was changed
OK
- fontgate.fgFontGateData.OK = OK(...)
-
bool OK() - return true if status is gdsOK
resetBbox
- fontgate.fgFontGateData.resetBbox = resetBbox(...)
-
resetBbox() - reset bbox cache
setParent
- fontgate.fgFontGateData.setParent = setParent(...)
-
setParent(fgGlyph) - set parent glyph
status
- fontgate.fgFontGateData.status = status(...)
-
'gdsOK'/'gdsInvalid' status()
transform
- fontgate.fgFontGateData.transform = transform(...)
-
transform(fgMatrix) - transform data
updated
- fontgate.fgFontGateData.updated = updated(...)
-
updated() - mark data as changed, reset internal caches