Text Font
txt-font
Defines the typeface and style to set the text in.
The value may be either a CSS-style category, or an explicit font name. The possible CSS names are serif, sans-serif, monospace, cursive, fantasy. For an explicit typeface, use the name instead. Use txt-font[N] to override this for a specific text layer — bare txt-font applies to every layer by default.
To make the type style bold or italic, append the desired options as a comma-separated list. For example: txt-font=sans-serif,bold,italic.
If you omit txt-font, text renders in HelveticaNeue.
Search the supported typefaces below. Each result previews the typeface as the Rendering API actually draws it. Typefaces for non-Latin writing systems are previewed with a specimen in their own script. The same list, alongside the Video API’s separate font set, is on the Supported Fonts reference page.
Prefer Base64 Variant
Imgix recommends using the Base64 variant version of this parameter to make encoding values easier.
Custom Fonts
txt-font also accepts fonts you upload in the dashboard, either account-wide or scoped to selected Sources, on images and on video text overlays. See Custom Fonts to upload fonts and choose their scope.
Use the txt-font value shown on the Fonts page. The family name is the regular file; txt-weight and txt-style switch to the bold and italic files you uploaded:
Any other weight is its own font, with its own value:
- A font also answers to the full name and PostScript name in its file. Case, spaces and punctuation don’t matter.
- A custom font takes precedence over a built-in typeface with the same name.
- If no custom font matches, or the font isn’t enabled for the Source,
txt-fontfalls back to the built-in typeface with that name, then to the default font.





