Skip to content

Text


The Text element can be used to put text on your card with the option to choose any font from Google fonts

ParameterDescription
idID Parameter that will be used in error messages
typeElement type. In this case it’s “text”
textText content
text_sizeSize of the text. Needs to be at least 1
fontThe font to be used. You can choose from any font that is listed on Google fonts
colorColor of the text
transparencyTransparency of the text. Needs to be a number between 1 and 100. 100 being not transparent and 0 being fully transparent.
layerLayer of the text. Can be any number but is useful to control which text goes on top of which element.
positionContains “x” and “y”. Used to specify the position of the text.
sizeContains “width” and “height”. Used to specify the size of the text. In this case also “auto” for both width and height can be used to use the size of the original image.
{
"id": "1",
"type": "text",
"text": "Cookie",
"text_size": "6",
"font": "DM Sans",
"color": "#ffffff",
"transparency": "100",
"layer": "9",
"position": {
"x": 35,
"y": 7
},
"size": {
"width": 2,
"height": 1
}
}