We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbbe3c5 commit 98cc18bCopy full SHA for 98cc18b
packages/av-cliper/src/clips/embed-subtitles-clip.ts
@@ -117,14 +117,15 @@ export class EmbedSubtitlesClip implements IClip {
117
fontStyle,
118
videoWidth,
119
videoHeight,
120
+ letterSpacing,
121
} = this.#opts;
122
this.#lineHeight = fontSize + this.#linePadding * 2;
123
this.#cvs = new OffscreenCanvas(videoWidth, videoHeight);
124
this.#ctx = this.#cvs.getContext('2d')!;
125
this.#ctx.font = `${fontStyle} ${fontWeight} ${fontSize}px ${fontFamily}`;
126
this.#ctx.textAlign = 'center';
127
this.#ctx.textBaseline = 'top';
- this.#ctx.letterSpacing = this.#opts.letterSpacing ?? '0px';
128
+ this.#ctx.letterSpacing = letterSpacing ?? '0px';
129
130
this.#meta = {
131
width: videoWidth,
0 commit comments