Skip to content

fontlab.flMarkerPoint · declarations 001

Back to fontlab.flMarkerPoint

createInstance

createInstance() -> flMarkerPoint

flMarkerPoint createInstance()

Factory method: creates a detached flMarkerPoint that you can then configure and attach to a guideline. Preferred over calling the constructor directly.

Source: FontLab Proteus API documentation

isSelected instance-attribute

isSelected: Any

bool

True if this marker is currently selected in the editor. Check this when you want to operate only on the markers the designer has highlighted.

Source: FontLab Proteus API documentation

isStem instance-attribute

isStem: Any

bool

True if this marker represents a stem edge (a black stroke boundary) rather than a zone boundary or vertical metric line.

Source: FontLab Proteus API documentation

key instance-attribute

key: Any

flSnaps::MarkerKey key()

The marker's classification: UndefinedMarker, HandMarker (placed manually by the designer), AutoMarker (detected automatically by FontLab), or AnyKeyMarker (used as a wildcard when querying).

Source: FontLab Proteus API documentation

markerFlag

markerFlag(role: int) -> int

uint markerFlag(uint role)

Returns the flag bits for the given role. Roles partition a marker's flags into logical groups — for example, role 0 might flag "this marker fills the shape interior", role 1 might flag "this is a left sidebearing marker". Use flSnaps.MarkerFlags constants for bit meanings.

Source: FontLab Proteus API documentation

markerFlags instance-attribute

markerFlags: Any

uint

The combined bitmask of all flags across all roles. Read this to get the raw bits; use markerFlag(role) for role-specific queries.

Source: FontLab Proteus API documentation

position instance-attribute

position: Any

double

The position of this marker along its parent guideline, measured in glyph units from the guideline's reference point. Positive values go in the guideline's forward direction.

Source: FontLab Proteus API documentation

setMarkerFlag

setMarkerFlag(role: int, markerFlags: int) -> Any

setMarkerFlag(uint role, uint markerFlags)

Sets all flag bits for the given role to markerFlags. Use constants from flSnaps.MarkerFlags to specify the meaning — for example, whether the marker is a stem edge, a zone edge, or a metric line.

Source: FontLab Proteus API documentation