Load Font
photopea_load_fontLoad custom fonts from a URL into Photopea to use in text layers. Supports TTF, OTF, and WOFF2. After loading, use list_fonts to get the font name for add_text or edit_text.
Instructions
Load a custom font from a URL (TTF, OTF, or WOFF2) into Photopea. The font becomes available for add_text and edit_text. Use list_fonts to find the PostScript name after loading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to a font file (.ttf, .otf, or .woff2) |