Skip to content

fontlab.flPackage · declarations 003

Back to fontlab.flPackage

info instance-attribute

info: Any

FontInfo

The structured font info object — gives you access to all UFO-compatible metadata fields like familyName, styleName, copyright, and OS/2 values.

Source: FontLab Proteus API documentation

initItr

initItr(itr: fgTTInterpreter) -> Any

initItr(fgTTInterpreter itr)

Initialise the TrueType interpreter for this font. Required before running the TT hint engine.

Source: FontLab Proteus API documentation

initItrGlyph

initItrGlyph(itr: fgTTInterpreter, glyph: flGlyph) -> Any

initItrGlyph(fgTTInterpreter itr, flGlyph glyph)

Initialise the TT interpreter for a specific glyph, loading its outline data into the interpreter's memory.

Source: FontLab Proteus API documentation

inktrapLen_value instance-attribute

inktrapLen_value: Any

double

The ink-trap length for optical corrections at sharp joins.

Source: FontLab Proteus API documentation

instanceAttributes instance-attribute

instanceAttributes: Any

flLayerAttributes

Default layer attributes for generated instances.

Source: FontLab Proteus API documentation

instances instance-attribute

instances: Any

QList

All named instances (the specific points in design space you've chosen to name).

Source: FontLab Proteus API documentation

interpolateInstance

interpolateInstance(location: flLocation, round: bool) -> flPackage

flPackage interpolateInstance(flLocation location, bool round)

Generate a fully interpolated font package at the given design-space location. Pass round=True to quantise all coordinates to integers.

Source: FontLab Proteus API documentation

interpolateMaster

interpolateMaster(location: flLocation, master_name: Any) -> bool

bool interpolateMaster(flLocation location, string master_name)

Compute an interpolated master layer at the given location and write the result into the named master.

Source: FontLab Proteus API documentation

interpolationCheckGeometry instance-attribute

interpolationCheckGeometry: Any

bool

Whether FontLab verifies that master outlines have compatible geometry before interpolating.

Source: FontLab Proteus API documentation

interpolationExtrapolate instance-attribute

interpolationExtrapolate: Any

bool

Whether interpolation is allowed to extrapolate beyond the defined axis range.

Source: FontLab Proteus API documentation

interpolationFlags instance-attribute

interpolationFlags: Any

int

A bit-field of options that control how interpolation behaves for this font.

Source: FontLab Proteus API documentation

interpolationMutatorMath instance-attribute

interpolationMutatorMath: Any

bool

Whether to use the MutatorMath engine for interpolation (more powerful than simple linear blending).

Source: FontLab Proteus API documentation

interpolationSortContours instance-attribute

interpolationSortContours: Any

bool

Whether FontLab sorts contours by position before interpolating (helps avoid crossed outlines).

Source: FontLab Proteus API documentation

isComponent

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

(flGlyph, QTransform) isComponent(flShapeData[, string layer_name])

Check whether a shape data is used as a component. If it is, returns the source glyph and the transform applied to it.

Source: FontLab Proteus API documentation

isKey instance-attribute

isKey: Any

bool

True if this package is the key (default) master in a variable font project.

Source: FontLab Proteus API documentation

isMaster instance-attribute

isMaster: Any

bool

True if this package is a master font within a variable font.

Source: FontLab Proteus API documentation

italic instance-attribute

italic: Any

bool

True if this font is styled as italic.

Source: FontLab Proteus API documentation

italicAngle_value instance-attribute

italicAngle_value: Any

double

The italic angle in degrees. Negative for a standard right-leaning italic, e.g. -12.0.

Source: FontLab Proteus API documentation

keepShapeData instance-attribute

keepShapeData: Any

bool

When True, shared shape data is preserved on export rather than expanded to individual outlines.

Source: FontLab Proteus API documentation

kerning

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

fgKerning kerning([string master_name])

Return the kerning table for the given master as a dictionary. Keys are (left, right) name tuples; values are integer kern amounts in font units.

Source: FontLab Proteus API documentation

kerningContainer

kerningContainer() -> flObject

flObject kerningContainer()

Return the internal object that holds all kerning data.

Source: FontLab Proteus API documentation

lineGap_value instance-attribute

lineGap_value: Any

double

Extra space added between lines of text beyond ascender and descender.

Source: FontLab Proteus API documentation

location

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

flLocation& location([string master_name])

Return the design-space location (axis values) for the given master, or for the active master if no name is given.

Source: FontLab Proteus API documentation

makeShapeDataName

makeShapeDataName(name: Any, _id: Any, layer_name: Any) -> Any

string makeShapeDataName(string name, objId _id, string layer_name)

Generate a unique name for a shared shape data, based on a proposed name.

Source: FontLab Proteus API documentation

mask instance-attribute

mask: Any

flLayer

The font's shared mask layer.

Source: FontLab Proteus API documentation

master instance-attribute

master: Any

string

The name of the currently active master.

Source: FontLab Proteus API documentation

masterLib instance-attribute

masterLib: Any

dict(name, QVariant)

A key–value dictionary for the active master.

Source: FontLab Proteus API documentation

masters instance-attribute

masters: Any

QList

The names of all masters in this font, in order.

Source: FontLab Proteus API documentation

mastersContainer

mastersContainer() -> flObject

flObject mastersContainer()

Return the internal object that holds all master packages.

Source: FontLab Proteus API documentation

mastersCount instance-attribute

mastersCount: Any

int

How many masters this font has.

Source: FontLab Proteus API documentation

measurement_value instance-attribute

measurement_value: Any

double

The Y position of the custom measurement line.

Source: FontLab Proteus API documentation

monospaced instance-attribute

monospaced: Any

bool

True if every glyph has the same advance width (fixed-pitch font).

Source: FontLab Proteus API documentation

note instance-attribute

note: Any

string

A freeform text note attached to the font. Useful for internal documentation.

Source: FontLab Proteus API documentation

optimizeShapeTransformations

optimizeShapeTransformations(changes: list[flObject]) -> bool

bool optimizeShapeTransformations(QList changes)

Clean up and simplify the transform matrices stored in shape data — removing redundant or identity transforms.

Source: FontLab Proteus API documentation

optimizeStemData

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

(flStems stemsH, flStems stemsV) optimizeStemData(flStems stemsH, flStems stemsV)

Optimise a pair of stem lists by removing duplicates and merging near-identical values.

Source: FontLab Proteus API documentation

other instance-attribute

other: Any

string

Other classification metadata.

Source: FontLab Proteus API documentation

packageLib instance-attribute

packageLib: Any

dict(name, QVariant)

A key–value dictionary for storing arbitrary font-level metadata.

Source: FontLab Proteus API documentation

panose instance-attribute

panose: Any

string

PANOSE classification string — a legacy 10-digit classification system.

Source: FontLab Proteus API documentation

path instance-attribute

path: Any

The path to the source font file

The full file path to the source font file on disk.

Source: FontLab Proteus API documentation

prepareAxes

prepareAxes(packages: list[flPackage], glyphs: list[flGlyph]) -> Any

QList/Nothing prepareAxes(QList packages, QList glyphs)

Prepare axis definitions by examining a set of packages and glyphs. Used when merging multiple fonts into a variable font project.

Source: FontLab Proteus API documentation