Text Autofit
Learn about text autofit with fit, truncate, and overflow modes
Text Autofit in Orshot Studio controls how text behaves when it doesn't fit within its container dimensions. There are three modes available: Fit, Truncate, and Overflow
Text Autofit Options#
Overflow Mode (Default)#
Text flows naturally and may extend beyond the container boundaries.
Use when:
- You want natural text wrapping
- Container size can accommodate all content
- Overflow is acceptable in your design
Fit Mode#
Automatically adjusts font size to fit text within the container while maintaining readability.
Use when:
- Text must fit within fixed container dimensions
- Font size can vary based on content length
- You want to maximize text size while preventing overflow
Configuration:
- Min Font Size: Set the minimum font size (default: 8px) to maintain readability
Truncate Mode#
Displays as many complete lines as possible within the container and adds ellipsis (...) to indicate truncated content
Use when:
- Container dimensions are fixed
- Font size must remain consistent
- You want to show maximum content with clear truncation indication
Setting Text Autofit#
- Select a text element in your template
- In the Styles panel, find the Text Autofit dropdown
- Choose from: Overflow, Fit, or Truncate
- For Fit mode, optionally set the Min Font Size
API Usage#
When generating images via API, text modes are automatically applied based on your template configuration. No additional parameters required - the text processing happens during image generation
{
"templateId": "your-template-id",
"data": {
"title": "Your dynamic text content"
}
}The text will be processed according to the mode you configured in the Studio editor
Ready to automate?
Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.
Get your API key- Image, PDF and video generation via API
- Visual editor with AI and smart layouts
- Zapier, Make, MCP and 50+ integrations
- White-label embed for your own app
- 60 free renders — no credit card required