Skip to content

fontlab.flPackage · declarations 005

Back to fontlab.flPackage

title_name

title_name(force_full: Any = ...) -> Any

string title_name([bool force_full = true])

Return a display title for the font (family + style). Useful for logging or UI labels.

Source: FontLab Proteus API documentation

tsn instance-attribute

tsn: Any

string

Typographic subfamily name — the style name within the typographic family, e.g. "Bold Italic".

Source: FontLab Proteus API documentation

tt_stemsH instance-attribute

tt_stemsH: Any

list(flStem)

TrueType horizontal stems.

Source: FontLab Proteus API documentation

tt_stemsV instance-attribute

tt_stemsV: Any

list(flStem)

TrueType vertical stems.

Source: FontLab Proteus API documentation

tt_zonesB instance-attribute

tt_zonesB: Any

list(flZone)

TrueType bottom zones.

Source: FontLab Proteus API documentation

tt_zonesT instance-attribute

tt_zonesT: Any

list(flZone)

TrueType top zones.

Source: FontLab Proteus API documentation

tthRenameStems

tthRenameStems(map_h: dict[str, str], map_v: dict[str, str]) -> bool

bool tthRenameStems(QMap map_h, QMap map_v)

Rename TrueType stems across all glyphs in the font. Pass dictionaries mapping old names to new names for horizontal and vertical stems separately.

Source: FontLab Proteus API documentation

tthRenameZones

tthRenameZones(map_top: dict[str, str], map_bottom: dict[str, str]) -> bool

bool tthRenameZones(QMap map_top, QMap map_bottom)

Rename TrueType zones across all glyphs. Pass dictionaries mapping old names to new names for top and bottom zones separately.

Source: FontLab Proteus API documentation

underlinePosition_value instance-attribute

underlinePosition_value: Any

double

The Y position of the underline stroke, relative to the baseline.

Source: FontLab Proteus API documentation

underlineThickness_value instance-attribute

underlineThickness_value: Any

double

The thickness of the underline stroke.

Source: FontLab Proteus API documentation

updateAxesMap

updateAxesMap() -> Any

updateAxesMap()

Rebuild the internal mapping between axis names and design-space locations after making changes to axes.

Source: FontLab Proteus API documentation

updateFontMetrics

updateFontMetrics() -> Any

updateFontMetrics()

Recalculate all font-level metric values (ascender, descender, x-height, etc.) based on the current glyph data.

Source: FontLab Proteus API documentation

updateShapeReferenceCount

updateShapeReferenceCount() -> Any

updateShapeReferenceCount()

Rebuild the internal reference-count table for all shared shape data. Call after programmatically adding or removing components.

Source: FontLab Proteus API documentation

updateZonesFromGuidelines

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

updateZonesFromGuidelines([flZones zonesT, flZones zonesB])

Re-derive alignment zone positions from the current font-level guidelines. Handy if you moved a guideline and want the zone to follow.

Source: FontLab Proteus API documentation

upm instance-attribute

upm: Any

float

The units-per-em value. Most professional fonts use 1000 (PostScript) or 2048 (TrueType).

Source: FontLab Proteus API documentation

variables instance-attribute

variables: Any

list(flPropertyDouble)

All variable properties (expressions and interpolation formulas) defined in this font.

Source: FontLab Proteus API documentation

variationPackages instance-attribute

variationPackages: Any

QList

The list of master sub-packages. In a single-master font this contains just the font itself.

Source: FontLab Proteus API documentation

versionMajor instance-attribute

versionMajor: Any

int

The font's major version number (e.g. 1 in version 1.023).

Source: FontLab Proteus API documentation

versionMinor instance-attribute

versionMinor: Any

int

The font's minor version number (e.g. 23 in version 1.023).

Source: FontLab Proteus API documentation

weight instance-attribute

weight: Any

string

Weight string, e.g. "Regular", "Bold", "Light".

Source: FontLab Proteus API documentation

weight_value instance-attribute

weight_value: Any

double

The weight axis value (0–1000 scale, matching the OpenType wght axis).

Source: FontLab Proteus API documentation

width instance-attribute

width: Any

string

Width string, e.g. "Condensed", "Extended".

Source: FontLab Proteus API documentation

width_value instance-attribute

width_value: Any

double

The width axis value.

Source: FontLab Proteus API documentation

xHeight_value instance-attribute

xHeight_value: Any

double

The x-height — the distance from baseline to the top of flat lowercase letters like "x".

Source: FontLab Proteus API documentation

zones

zones(HintingDataType: Any, top: bool) -> Any

list(flZone)& zones(HintingDataType, bool top)

Return the list of PS or TT alignment zones. top=True returns top zones (cap height, x-height); top=False returns bottom zones (baseline, descender).

Source: FontLab Proteus API documentation