fontlab.flModelProducer · declarations 001
Back to fontlab.flModelProducer
copyToClipboard
copyToClipboard(package_id: Any, objects: list[flObject]) -> Any
copyToClipboard(objId package_id, QList
Serialises the given objects and writes the result directly to the system clipboard. Equivalent to getClipboardData + placing the result on the clipboard. After this call the user can paste the shapes using Edit → Paste in the UI.
Source: FontLab Proteus API documentation
countGlyphsInData
countGlyphsInData(*args: Any, **kwargs: Any) -> Any
int countGlyphsInData(QByteArray *data)
Counts how many glyphs are encoded in a binary blob without fully deserialising it. Useful for showing a count in a dialog before a potentially slow paste operation.
Source: FontLab Proteus API documentation
getClipboardData
getClipboardData(*args: Any, **kwargs: Any) -> Any
QByteArray getClipboardData(objId package_id, double upm, QList
Serialises the given list of font objects into a binary blob. package_id identifies the source font (use font.id); upm is its units per em (use font.upm). This method only creates an in-memory buffer and does not access the system clipboard. Returns a QByteArray binary blob. Store this blob if you want a snapshot of the shapes at a moment in time, or write it to the clipboard.
Source: FontLab Proteus API documentation
getClipboardDataJson
getClipboardDataJson(*args: Any, **kwargs: Any) -> Any
QByteArray getClipboardDataJson(objId package_id, double upm, QList
getObjectsFromClipboard
getObjectsFromClipboard() -> Any
list(flObject)/Nothing getObjectsFromClipboard()
getObjectsFromData
getObjectsFromData(*args: Any, **kwargs: Any) -> Any
list(flObject)/Nothing getObjectsFromData(QByteArray *data)
getObjectsFromJsonData
getObjectsFromJsonData(data: Any) -> Any
list(flObject)/Nothing getObjectsFromJsonData(QByteArray/bytes/bytearray/str data)