Text
Single-line text with any Google font, rendered crisp via a glyph texture
Props
Prop
Details
textstringDefault:
Hello WorldThe text to display (single line)
textstringDefault: Hello WorldThe text to display (single line)
fontFamilystringDefault:
InterGoogle Fonts family name
fontFamilystringDefault: InterGoogle Fonts family name
fontWeightnumberDefault:
400Font weight (only weights published for the family render true; others are synthesized)
fontWeightnumberDefault: 400Font weight (only weights published for the family render true; others are synthesized)
italicbooleanDefault:
falseItalic style
italicbooleanDefault: falseItalic style
textTransform"none" | "uppercase" | "lowercase" | "capitalize"Default:
noneCase transformation applied to the text
textTransform"none" | "uppercase" | "lowercase" | "capitalize"Default: noneCase transformation applied to the text
fontSizenumberDefault:
0.07Font size as a fraction of canvas height
fontSizenumberDefault: 0.07Font size as a fraction of canvas height
letterSpacingnumberDefault:
0Letter spacing in em units
letterSpacingnumberDefault: 0Letter spacing in em units
colorstringDefault:
#ffffffText color
colorstringDefault: #ffffffText color
originstringDefault:
centerReference edge the center position is measured from (center default). Lets you pin the text relative to a corner or the canvas centre.
originstringDefault: centerReference edge the center position is measured from (center default). Lets you pin the text relative to a corner or the canvas centre.
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the text
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the text
rotationnumberDefault:
0Rotation in degrees
rotationnumberDefault: 0Rotation in degrees