fontlab.flPackage · declarations 002
featuresContainer
featuresContainer() -> flObject
flObject featuresContainer()
Return the container holding the OpenType feature code.
Source: FontLab Proteus API documentation
ffn
instance-attribute
ffn: Any
string
Full font name — the complete name as it appears in font menus, e.g. "Gill Sans Bold Italic".
Source: FontLab Proteus API documentation
fgId
instance-attribute
fgId: Any
int
The low-level fontgate integer identifier for this font.
Source: FontLab Proteus API documentation
fgPackage
instance-attribute
fgPackage: Any
fgFont
The underlying low-level fontgate font object.
Source: FontLab Proteus API documentation
fileName
instance-attribute
fileName: Any
string
Just the filename without its directory path.
Source: FontLab Proteus API documentation
findAxis
findAxis(cs: Any = ...) -> Any
flAxis/Nothing findAxis(string name[, Qt::CaseSensitivity cs = Qt::CaseSensitive])
Find an axis by its full name, or None if not found.
Source: FontLab Proteus API documentation
findAxisShort
findAxisShort(short_name: Any) -> Any
flAxis/Nothing findAxisShort(string short_name)
Find an axis by its four-letter OpenType tag (e.g. "wght", "wdth").
Source: FontLab Proteus API documentation
findFgId
findFgId(id: int) -> flGlyph
flGlyph findFgId(uint id)
Find a glyph by its internal low-level integer id. Rarely needed in scripts.
Source: FontLab Proteus API documentation
findGroup
findGroup(_id: int) -> Any
fg::GlyphGroup* findGroup(int _id)
Find a group by its integer id.
Source: FontLab Proteus API documentation
findName
findName(name: Any) -> flGlyph
flGlyph findName(string name)
Find and return the glyph with the given name, or None. The fastest and most common way to look up a glyph by name.
Source: FontLab Proteus API documentation
findNameId
findNameId(fg_id: int) -> flGlyph
flGlyph findNameId(uint fg_id)
Find a glyph by its fontgate name id. Rarely needed in scripts.
Source: FontLab Proteus API documentation
findNewName
findNewName(name: Any) -> Any
string findNewName(string name)
Given a proposed name, return a version that is guaranteed to be unique in this font (e.g. "A.alt2" if "A.alt" is already taken).
Source: FontLab Proteus API documentation
findShapeRoot
findShapeRoot(shape_data: flShapeData) -> flGlyph
flGlyph findShapeRoot(flShapeData shape_data)
Find the glyph that owns (defines) a particular shared shape data.
Source: FontLab Proteus API documentation
findStem
findStem(n: Any, b: bool, loose: bool) -> int
int findStem(string n, bool b, bool loose)
Find a stem by name and return its index in the stem list, or -1 if not found. Pass loose=True for a fuzzy name match.
Source: FontLab Proteus API documentation
findUnicode
findUnicode(uni: int) -> flGlyph
flGlyph findUnicode(uint uni)
Find the glyph assigned to a given unicode codepoint. Pass the integer value, e.g. 0x0041 for "A".
Source: FontLab Proteus API documentation
findZone
findZone(n: Any, b: bool) -> int
int findZone(string n, bool b)
Find a zone by name and return its index. top specifies whether to search top or bottom zones.
Source: FontLab Proteus API documentation
fontLayerOrder
instance-attribute
fontLayerOrder: Any
A list of layer names indicating order of the layers in the font
The ordered list of master names, which determines master order in interpolation.
Source: FontLab Proteus API documentation
generateGlyph
generateGlyph(recipe: Any, layer_name: Any, metrics: Any, rtl: bool) -> Any
QList
Build a composite glyph from a recipe string (e.g. "A+acutecomb"). Returns a list of component descriptors and the calculated advance width.
Source: FontLab Proteus API documentation
getAccentsInfo
getAccentsInfo(arg0: flLayer, arg1: flPinPoint) -> Any
list(AccentInfo)/Nothing getAccentsInfo(flLayer, flPinPoint)
Return accent-positioning information for a given anchor point on a layer. Used internally when building composite glyphs.
Source: FontLab Proteus API documentation
getAllGroups
getAllGroups() -> Any
list( (bool kernGroup, string groupName, int id, int mark, list(string glyphName) )/Nothing getAllGroups()
Return all glyph groups (kerning classes and general groups) with full metadata. Each entry is a tuple of group type flag, name, id, mark colour, and member glyph names.
Source: FontLab Proteus API documentation
getAxisName
getAxisName(short_name: Any) -> Any
string getAxisName(string short_name)
Given a four-letter tag, return the full axis name.
Source: FontLab Proteus API documentation
getAxisShortName
getAxisShortName(name: Any) -> Any
string getAxisShortName(string name)
Given a full axis name, return its four-letter tag.
Source: FontLab Proteus API documentation
getLayerName
getLayerName() -> Any
string getLayerName()
Return the name of the currently active master layer.
Source: FontLab Proteus API documentation
getMarkOffset
QPointF/Nothing getMarkOffset(flGlyph g1, flGlyph g2, string layer_name)
Compute the positional offset between matching anchors in two glyphs on the named layer. Returns None if no matching anchors are found.
Source: FontLab Proteus API documentation
getShapes
getShapes(*args: Any, **kwargs: Any) -> Any
QList
Return the ids of all shared shapes whose names match the filter string.
Source: FontLab Proteus API documentation
glyphsCount
instance-attribute
glyphsCount: Any
int
The total number of glyphs in the font.
Source: FontLab Proteus API documentation
guidelines
instance-attribute
guidelines: Any
list(flGuideLine)
All font-level guidelines.
Source: FontLab Proteus API documentation
guidelinesHost
instance-attribute
guidelinesHost: Any
GuidelinesHostIntf*
hasAxis
hasAxis(cs: Any = ...) -> bool
bool hasAxis(string name[, Qt::CaseSensitivity cs = Qt::CaseSensitive])
Return True if an axis with that name exists.
Source: FontLab Proteus API documentation
hasAxisShort
hasAxisShort(short_name: Any) -> bool
bool hasAxisShort(string short_name)
Return True if an axis with that four-letter tag exists.
Source: FontLab Proteus API documentation
hasGuides
hasGuides() -> bool
bool hasGuides()
Return True if there are any font-level guidelines defined.
Source: FontLab Proteus API documentation
hasInstaceFor
hasInstaceFor(arg0: fgFont) -> bool
bool hasInstaceFor(fgFont)
Check whether a Python flPackage wrapper already exists for the given low-level font. Prevents creating duplicate wrappers.
Source: FontLab Proteus API documentation
hasMaster
hasMaster(name: Any) -> bool
bool hasMaster(string name)
Return True if a master with that name exists in this font.
Source: FontLab Proteus API documentation
hasName
hasName(relaxed: Any = ...) -> bool
bool hasName(string name[, bool relaxed=false])
Return True if a glyph with that name already exists. Pass relaxed=True for a case-insensitive check.
Source: FontLab Proteus API documentation
hasPackageHistoryStorages
hasPackageHistoryStorages(to_history_ix: int) -> bool
bool hasPackageHistoryStorages(uint to_history_ix)
Check whether the undo history goes back at least to the given index.
Source: FontLab Proteus API documentation
hasWeightAxis
instance-attribute
hasWeightAxis: Any
bool
True if the font has a weight axis defined in its design space.
Source: FontLab Proteus API documentation
hasWidthAxis
instance-attribute
hasWidthAxis: Any
bool
True if the font has a width axis defined.
Source: FontLab Proteus API documentation
hasZones
hasZones() -> bool
bool hasZones()
Return True if there are any alignment zones defined.
Source: FontLab Proteus API documentation
hinting
instance-attribute
hinting: Any
flHintingParameters
The font-wide hinting configuration.
Source: FontLab Proteus API documentation
historyStack
historyStack() -> flObject
flObject historyStack()
Return the undo/redo history stack.
Source: FontLab Proteus API documentation