Skip to content

Instantly share code, notes, and snippets.

@goldzulu
Created July 27, 2020 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldzulu/7a550d982b452caeccdcbba4aafa36ca to your computer and use it in GitHub Desktop.
Save goldzulu/7a550d982b452caeccdcbba4aafa36ca to your computer and use it in GitHub Desktop.
An APL 1.4 example on how to use fonts and text (AVG) VectorGraphics Component in Alexa Skill
{
"type": "APL",
"version": "1.4",
"settings": {},
"theme": "dark",
"import": [],
"resources": [],
"styles": {},
"onMount": [],
"graphics": {
"GoldzuluText": {
"type": "AVG",
"version": "1.1",
"height": "100vh",
"width": "100vw",
"items": [
{
"type": "text",
"fill": "gold",
"fontFamily": "amazon-ember, sans-serif",
"fontSize": 80,
"text": "GOLDZULU",
"x": "${viewport.width/2}",
"y": "${viewport.height/2}",
"textAnchor": "middle"
}
]
}
},
"commands": {},
"layouts": {},
"mainTemplate": {
"parameters": [
"payload"
],
"items": [
{
"type": "Container",
"height": "100vh",
"width": "100vw",
"alignItems": "center",
"justifyContent": "center",
"items": [
{
"type": "VectorGraphic",
"source": "GoldzuluText"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment