Skip to content

fontlab.flStem · declarations 001

Back to fontlab.flStem

guaranteeName

guaranteeName() -> Any

guaranteeName()

If the stem has no name yet, automatically assign a unique default name (e.g. "Stem1"). Useful when creating stems programmatically.

Source: FontLab Proteus API documentation

linear

linear(upm: float, k: int) -> int

int linear(double upm, int k)

Calculate the linear rasterisation value for this stem at the given ppem. A "linear" stem does not snap — it scales smoothly.

Source: FontLab Proteus API documentation

name instance-attribute

name: Any

string

ppm

ppm(upm: float, k: int) -> int

int ppm(double upm, int k)

Calculate the pixels-per-em value at which this stem width snaps to the next pixel, given the font's units-per-em and a target ppem k. Useful for fine-tuning hinting parameters.

Source: FontLab Proteus API documentation

program instance-attribute

program: Any

QSet

programText instance-attribute

programText: Any

QString

tags instance-attribute

tags: Any

string

tagsSet

tagsSet() -> Any

QSet/Nothing tagsSet()

toStem

toStem(arg0: fgStem) -> Any

toStem(fgStem)

Export this stem's data into a low-level fontgate stem object. Called internally during font export.

Source: FontLab Proteus API documentation

value instance-attribute

value: Any

double

The stem width in font units. This is the key measurement — set it to the measured width of the stroke you want to control.

Source: FontLab Proteus API documentation