fontlab.flInstance · declarations 001
autoSGN
autoSGN(*args: Any, **kwargs: Any) -> Any
string autoSGN(const string &tfn)
Auto-generates the Style Group Name from the typographic family name tfn. Used for grouping instances in the Windows font menu
Source: FontLab Proteus API documentation
autoSLV
autoSLV() -> int
int autoSLV()
Auto-computes the OS/2 fsSelection style-linking value (the byte that encodes bold/italic/regular). Returns the integer value
Source: FontLab Proteus API documentation
autoTSN
autoTSN() -> Any
string autoTSN()
Auto-generates the Typographic Subfamily Name (the name table entry 2 equivalent) based on this instance's axis values and style flags
Source: FontLab Proteus API documentation
bold
instance-attribute
bold: Any
bool
True if this instance is the "bold" of a style-linking pair. Used to set the bold bit in the OS/2 table
Source: FontLab Proteus API documentation
exportable
instance-attribute
exportable: Any
bool
When True, this instance is included when you export font files. Set to False to temporarily exclude an instance from exports without deleting it
Source: FontLab Proteus API documentation
italic
instance-attribute
italic: Any
bool
True if this instance is italic. Used to set the italic bit in the OS/2 table
Source: FontLab Proteus API documentation
location
instance-attribute
location: Any
flLocation
The full design-space location of this instance — a mapping from axis tags to values. This is what precisely defines where in design space this instance lives
Source: FontLab Proteus API documentation
name
instance-attribute
name: Any
string
Internal instance name; use tsn for the displayed style name
Source: FontLab Proteus API documentation
setSLV
setSLV(bold: bool, italic: bool) -> Any
setSLV(bool bold, bool italic)
Set the style-linking values directly by specifying whether this instance should be considered the bold and/or italic variant of a nearby style
Source: FontLab Proteus API documentation
sgn
instance-attribute
sgn: Any
string
Style Group Name — used for grouping instances into families in Windows font menus
Source: FontLab Proteus API documentation
slv
instance-attribute
slv: Any
int
The OS/2 style-linking value as a raw integer. This encodes bold/italic/regular flags in the OS/2 fsSelection field
Source: FontLab Proteus API documentation
tfn
instance-attribute
tfn: Any
string: family override; empty inherits the source family
Stored typographic family override. An empty string inherits the source font's family; this getter does not resolve that fallback or change sgn.
Source: FontLab Proteus API documentation
tsn
instance-attribute
tsn: Any
string
Typographic Subfamily Name. The OpenType name table entry that positions this style within the typographic family. E.g. "Bold" within a family called "MyFont"
Source: FontLab Proteus API documentation
weight
instance-attribute
weight: Any
string
A human-readable weight descriptor string, e.g. "Light", "Regular", "Bold"
Source: FontLab Proteus API documentation
weightValue
instance-attribute
weightValue: Any
double
The numeric weight value for this instance on the weight axis (e.g. 700 for Bold). Corresponds to the wght axis value
Source: FontLab Proteus API documentation
width
instance-attribute
width: Any
string
A human-readable width descriptor string, e.g. "Condensed", "Normal", "Extended"
Source: FontLab Proteus API documentation