Type tester standalone props

Property
Type
Description
family-name

string Required

Font family name (must have been already uploaded to your Fontdue admin)

style-name

string Required

The name of the style from the family to display. Note that variable fonts have one or more Font Styles, these represent each font file that make up the designspace of the font.

font-size

string

Initial font size in pixels.

line-height

string

Line-height as a proportional value where 1 == font-size.

content

string

The initial content to display.

features

string

Comma-separated list of opentype feature codes to expose as options to users. (e.g. ss01,ss02,ss03)

features-selected

string

Comma-seperated list of opentype feature codes to be selected by default

autofit

string

See the autofit option for fontdue-type-testers widget above.

variable-settings

string

If this type tester points to a variable font, set the variable font settings here with a comma-separated list of settings. Each setting must have the format {axis} {value}, e.g. wdth 1000, ital 0.5. The instance dropdown will register a named instance if its coordinates match up with the settings supplied here.

axes

string

Comma-separated list of variable axes to expose (e.g. wdth,opsz)

alignment

'left' | 'center' | 'right'

Text alignment

direction

'rtl' | 'ltr'

Text direction (used for right-to-left scripts)