Skip to content

Variable: font ​

ts
const font: ((options) => CdnOperation) & NamedOperationCreator;

Defined in: ops/overlay.ts:217

Font state for the following text operation. Only the parts you give are written, in the order the CDN requires.

See ​

https://uploadcare.com/docs/transformations/image/overlay/#overlay-text

Example ​

ts
font({ size: 24, color: 'fff' }) // → -/font/24/fff/
font({ weight: 'bold', family: 'DejaVuSerif' }) // → -/font/bold/DejaVuSerif/