Skip to content

fontgate.fgGlyph · declarations 001

Back to fontgate.fgGlyph

activeLayer instance-attribute

activeLayer: Any

(fgLayer) active layer or Nothing if not found

addUnicode

addUnicode(unicode: Any) -> Any

addUnicode(unicode) - add unicode to glyph

anchors instance-attribute

anchors: Any

([ fgAnchor ]) anchor's list

append

append(mtx: Any = ...) -> Any

append(fgGlyph[, mtx=fgMatrix()]) - append contours of source glyph to current glyph

bodyLayer instance-attribute

bodyLayer: Any

(fgLayer) layer 'Body' or Nothing if not found

bodyLayerStrict instance-attribute

bodyLayerStrict: Any

(fgLayer) layer 'Body' (create one if not found)

box instance-attribute

box: Any

(fgRect) glyph bounding box (int values)

carets instance-attribute

carets: Any

([ fgCaret ]) caret's list

clear

clear(contours: Any = True, components: Any = True, anchors: Any = True, guides: Any = True, hints: Any = True) -> Any

clear(contours=true, components=true, anchors=true, guides=true, hints=true) - clear glyph's data

components instance-attribute

components: Any

([ fgComponent ]) component's list

countPictures

countPictures() -> int

int countPictures() - return count of glyph pictures

createContour

createContour() -> fgContour

fgContour createContour() - create new contour

createData

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

(variable type) createData(GlyphDataType) - create glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

decompose

decompose() -> bool

bool decompose() - decompose glyph

deleteContour

deleteContour(contourIndex: Any) -> Any

deleteContour(contourIndex) - delete contour by index

dict instance-attribute

dict: Any

(fgGlyphDict) glyph's data dictionary

draw

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

draw(penObject[, fgMatrix]) - draw contour by penObject (like fgPen) with transform matrix fgMatrix

fbox instance-attribute

fbox: Any

(fgRect) glyph bounding box (int/float values)

fgData

fgData() -> Any

fgFontGateData/Nothing fgData() - get dtFontGate data if it's exist

fgDataCreate

fgDataCreate() -> fgFontGateData

fgFontGateData fgDataCreate() - get dtFontGate data (create new one if missing)

fixComposites

fixComposites(fixRotation: Any = False) -> bool

bool fixComposites(fixRotation=false)

getData

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

(variable type) getData([GlyphDataType='dtFontGate']) - get glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

getPen

getPen() -> fgPen

fgPen getPen() - create new pen object

guides instance-attribute

guides: Any

([ fgGuide ]) guide's list

hasBody

hasBody() -> bool

bool hasBody() - return True if glyph has contours or picture

hasColors

hasColors() -> bool

bool hasColors() - return True if glyph has color pictures

hasData

hasData(GlyphDataType: Any) -> bool

bool hasData(GlyphDataType) - return True if glyph data, specified by GlyphDataType, is exist. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

hasHints

hasHints() -> bool

bool hasHints() - return True if glyph has hints

hasPictures

hasPictures() -> bool

bool hasPictures() - return True if glyph has pictures

hasUnicode

hasUnicode(unicode: Any) -> bool

bool hasUnicode(unicode) - return True if glyph has specified unicode

height instance-attribute

height: Any

(float) advancedHeight

hints instance-attribute

hints: Any

([ fgHint ]) hint's list

id instance-attribute

id: Any

(long) glyph ID

image instance-attribute

image: Any

(fgBitmap) first glyph image

index instance-attribute

index: Any

(int) glyph index

keepData

keepData(GlyphDataType: Any) -> bool

bool keepData(GlyphDataType) - remove all glyph data, except one specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

kerningLeft instance-attribute

kerningLeft: Any

(int)

kerningRight instance-attribute

kerningRight: Any

(int)

killData

killData(GlyphDataType: Any) -> bool

bool killData(GlyphDataType) - remove glyph data, specified by GlyphDataType. Possible values are 'dtNone', 'dtFontGate', 'dtTrueType', 'dtType1', 'dtCFF', 'dtProteus', 'dtBitmaps'

killUnicode

killUnicode(unicode: Any) -> Any

killUnicode(unicode) - remove unicode from glyph