Lists a curated selection of fonts available for use within Canva when no options is provided, otherwise performs filtering based on the criteria specified in the options.
options
To list all available fonts, please use the requestFontSelection method.
requestFontSelection
FindFontsOptions
Options for retrieving a list of fonts.
fontRefs
FontRef[]
The refs of the fonts to retrieve.
The result of retrieving a list of fonts. This is a Promise that resolves with the following object:
Promise
fonts
Font[]
The retrieved fonts.
ref
FontRef
A unique identifier that points to a font asset in Canva's backend.
name
string
The name of the font.
weights
FontWeight[]
The available font weights for the font.
weight
FontWeightName
The name of the font weight.
The available options include:
"normal"
"thin"
"extralight"
"light"
"medium"
"semibold"
"bold"
"ultrabold"
"heavy"
styles
FontStyle[]
The font styles available for this specific font weight.
"italic"
previewUrl
The URL of an image that renders a preview of the font.