Create font family variable
collection.createFontFamilyVariable(name, value)
Create a Font Family variable with a name for the variable, and name for the Font Family.
Syntax
Parameters
- name : string - Name of the variable
- value: string | FontFamilyVariable - Font Name
- options: object - Optional parameters for the variable.
- mode: VariableMode - The variable mode object. Get the variable mode by using the
collection.getVariableModeByName()method.
- mode: VariableMode - The variable mode object. Get the variable mode by using the
Returns
Promise<FontFamilyVariable>
A Promise that resolves to a FontFamilyVariable object