Text
The Text element can be used to put text on your card with the option to choose any font from Google fonts
Parameters
Section titled “Parameters”Parameter | Description |
---|---|
id | ID Parameter that will be used in error messages |
type | Element type. In this case it’s “text” |
text | Text content |
text_size | Size of the text. Needs to be at least 1 |
font | The font to be used. You can choose from any font that is listed on Google fonts |
color | Color of the text |
transparency | Transparency of the text. Needs to be a number between 1 and 100. 100 being not transparent and 0 being fully transparent. |
layer | Layer of the text. Can be any number but is useful to control which text goes on top of which element. |
position | Contains “x” and “y”. Used to specify the position of the text. |
size | Contains “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. |
JSON structure
Section titled “JSON structure”{ "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 }}