imgix APIsRendering APITextText Fit Mode

Text Fit Mode

txt-fit

Enables a fit mode for the text.

Presently, only the max fit mode is supported. With no fit mode, the text will be clipped if it exceeds the contraints of the text bounds. With txt-fit=max, the text will be scaled down to fit within the bounds rather than clipping the text contents. The default is to not set a fit mode.

The txt-pad and txt-width parameters are used to control the bounding region.