findFonts
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
.
To list all available fonts, please use the requestFontSelection
method.
Parameters
options
FindFontsOptions
Options for retrieving a list of fonts.
Properties of options
fontRefs
FontRef[]
The refs of the fonts to retrieve.
Returns
The result of retrieving a list of fonts. This is a Promise
that resolves with the following object:
fonts
Font[]
The retrieved fonts.
Properties of 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.
Properties of weights
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.
The available options include:
"normal"
"italic"
previewUrl
string
The URL of an image that renders a preview of the font.