Skip to content

fontgate.fgFontGateData · declarations 001

Back to fontgate.fgFontGateData

activeLayer

activeLayer() -> fgLayer

fgLayer activeLayer() - get active layer or Nothing if no layers exists

addContour

addContour(arg0: fgContour) -> fgContour

fgContour addContour(fgContour) - add contour into 'Body' layer

addShape

addShape(arg0: fgShape) -> fgShape

fgShape addShape(fgShape) - add shape into 'Body' layer

bodyLayer

bodyLayer() -> fgLayer

fgLayer bodyLayer() - get layer named 'Body', any existing non-service layer if not found or Nothing if no layers exists

bodyLayerStrict

bodyLayerStrict() -> fgLayer

fgLayer bodyLayerStrict() - get layer named 'Body'. if it's not present, create it on the fly

checkContours

checkContours() -> Any

checkContours() - ckeck for multi-segment contours and split it into one segment's contours

copy

copy() -> fgFontGateData

fgFontGateData copy() - create alone copy of data

countNodesContours

countNodesContours(*args: Any, **kwargs: Any) -> Any

(nodesCount, contoursCount) countNodesContours() - calculate stats for 'Body' layer if it present, return (0,0) otherwise

countShapes

countShapes() -> int

int countShapes() - return shapes count

findLayer

findLayer(*args: Any, **kwargs: Any) -> Any

fgLayer findLayer('name') - get layer by name, return Nothing if no layer found

getFontGateData

getFontGateData() -> fgFontGateData

fgFontGateData getFontGateData() - return self

getType

getType() -> Any

string getType() - return 'dtFontGate'

layers instance-attribute

layers: Any

(fgLayers) layers list

maskLayer

maskLayer(createIfMissing: bool) -> fgLayer

fgLayer maskLayer(bool createIfMissing)

modified

modified() -> bool

bool modified() - return true if data was changed

resetBbox

resetBbox() -> Any

resetBbox() - reset bbox cache