I want to align the text to the center.
However, when applying a stroke to the font, the alignment defaults to the left instead of the center.
This is my json
{
"timeline": {
"tracks": [
{
"clips": [
{
"asset": {
"type": "caption",
"src": "https://shotstack-assets.s3.amazonaws.com/captions/transcript.srt",
"font": {
"color": "#ffffff",
"opacity": 0.8,
"size": 38,
"lineHeight": 0.85,
"stroke": "#ff6600",
"strokeWidth": 0.8
},
"alignment": {
"horizontal": "center"
},
"width": 500
},
"start": 0,
"length": "end"
}
]
},
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://github.com/shotstack/test-media/raw/main/captioning/scott-ko.mp4"
},
"start": 0,
"length": "auto"
}
]
}
]
},
"output": {
"format": "mp4",
"size": {
"width": 720,
"height": 1280
}
}
}