Font
The font family identifies font formats from the leading bytes of a file.
Supported formats
detect
Identifies the font format of data from its leading bytes. Returns null in
Node.js and None in Python when the format is not recognized.
Node.js
Python
DetectedFormat
A format identified by detect.
In Python, DetectedFormat is a final class with read-only properties, and the
type of each property is str.
supportedFormats
Returns the identifier of each format that detect can return.