This commit is contained in:
Dragon Fire
2020-06-11 16:45:56 -04:00
parent cab4ff69e3
commit 898b25e367
+1 -1
View File
@@ -63,7 +63,7 @@ module.exports = class SubtitleCommand extends Command {
for (let i = 0; i < lines.length; i++) {
const textHeight = initial + (i * fontSize) + (i * 10);
ctx.strokeStyle = 'black';
const rounded = Math.round(base.height / 100)
const rounded = Math.round(base.height / 100);
ctx.lineWidth = rounded < 1 ? 1 : rounded;
ctx.strokeText(lines[i], base.width / 2, textHeight);
ctx.fillStyle = 'yellow';