Imgix APIsRendering APITextText Weight

Text Weight

txt-weight

The txt-weight parameter sets the weight of a text layer, overriding whatever weight the txt-font name implies. It means you can switch a caption between regular and bold without swapping the font name for a different variant.

ValueWeight
normalRegular weight
boldBold
A numberTreated as bold at 600 and above, regular below
The font's own weight
sandbox-demo
txt-weight=bold
sandbox-demo

Pair it with txt-style to control the slant independently of the weight.