Skip to content

Commit

Permalink
fix(WebVTT): Fix display italic subtitles with end align (#7559)
Browse files Browse the repository at this point in the history
Fixes #7553
  • Loading branch information
avelad authored Nov 7, 2024
1 parent 42bf0ca commit 781a27d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/text/cue.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ shaka.text.Cue = class {
nestedCue.region = new shaka.text.CueRegion();
nestedCue.position = null;
nestedCue.size = 0;
nestedCue.textAlign = shaka.text.Cue.textAlign.CENTER;

if (TXml.isNode(element)) {
const bold = shaka.text.Cue.fontWeight.BOLD;
Expand Down

0 comments on commit 781a27d

Please sign in to comment.