Load Font
photopea_load_fontLoad a custom TTF or OTF font from a URL into Photopea so it can be used for adding and editing text; find its PostScript name with list_fonts after loading.
Instructions
Load a custom font from a URL (TTF or OTF; Photopea cannot open 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 .ttf or .otf font file |