Add Font
tb.ops.font.add(*, data: str, name: str = ...) -> ResultUpload a TrueType / OpenType font (base64 or a data: URL, at most 20 MB) for Create Text. The same file uploaded twice returns the existing font. Returns its fontId and name.
| Argument | Type | Default | Description |
|---|---|---|---|
data | str | required | Font file bytes, base64 (a data: URL works). |
name | str | — | Display name (default: the family name inside the font). |