Skip to content

fontlab.ExportControl · declarations 001

Back to fontlab.ExportControl

conflictMode instance-attribute

conflictMode: Any

int

How to handle existing files with the same name. 0 = silently overwrite. 1 = skip (do not overwrite). 2 = ask the user each time. For batch scripts, use 0 to overwrite or 1 to skip safely.

Source: FontLab Proteus API documentation

contentMode instance-attribute

contentMode: Any

int

What to include in the export. 0 = full font. 1 = selected glyphs only. 2 = current master only.

Source: FontLab Proteus API documentation

contentName instance-attribute

contentName: Any

string contentName

Human-readable name for the current export-content selection.

Source: FontLab Proteus API documentation

destinationFolder instance-attribute

destinationFolder: Any

string

destinationMode instance-attribute

destinationMode: Any

int

Where to write the exported files. 0 = same folder as the source file. 1 = the folder specified in destinationFolder. 2 = ask the user each time. For batch scripts, use 1 with a fixed path.

Source: FontLab Proteus API documentation

groupFamily instance-attribute

groupFamily: Any

bool

If True, all styles of the same font family are grouped into a family-named subfolder. Keeps your exported fonts tidy when exporting an entire type family at once.

Source: FontLab Proteus API documentation

groupProfiles instance-attribute

groupProfiles: Any

bool

If True, files from different export profiles are grouped into profile-named subfolders within the destination. Useful when exporting both OTF and TTF from the same font.

Source: FontLab Proteus API documentation

init

init() -> Any

init()

Resets all properties to their factory default values. Call this at the start of an export script to start from a known state, so previously saved settings don't accidentally influence the batch run.

Source: FontLab Proteus API documentation

load

load() -> bool

bool load()

Loads previously stored settings from preferences. Returns True if settings were found. Use this to restore the user's last export configuration before modifying it in a script — you can load, then override just the fields you need.

Source: FontLab Proteus API documentation

profileId instance-attribute

profileId: Any

int

The numeric ID of the export profile. Use profileName unless you know the exact numeric ID.

Source: FontLab Proteus API documentation

profileName instance-attribute

profileName: Any

string

The name of the export profile — exactly as it appears in the export dialog. Examples: "OpenType PS", "OpenType TT", "Variable TTF", "UFO". Look up available profile names in FontLab's export dialog.

Source: FontLab Proteus API documentation

store

store() -> Any

store()

Saves the current settings to FontLab's preferences storage so they persist across application restarts. Equivalent to what FontLab does when you click OK in the export dialog. Useful at the end of a batch script to remember the last used settings.

Source: FontLab Proteus API documentation