Skip to content

Commit

Permalink
+ support set stroke style for subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
lispking committed Jun 10, 2023
1 parent 9eb2ec6 commit 7f3053b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node/subtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ class FFSubtitle extends FFNode {

setDefaultStyle() {
const padding = 10;
const { color = '#ffffff' } = this.conf;
this.setStyle({ color, padding, alpha: 0 });
const { color = '#ffffff', stroke = '#000000', strokeThickness = 3 } = this.conf;
this.setStyle({ color, padding, alpha: 0, stroke: stroke, strokeThickness: strokeThickness });
}

async preProcessing() {
Expand Down

0 comments on commit 7f3053b

Please sign in to comment.