libjass icon indicating copy to clipboard operation
libjass copied to clipboard

Support BorderStyle = 3

Open janparadowski opened this issue 9 years ago • 5 comments

Currently, this does not seem to be supported. Should make a (black) rectangular background to the subtitles/captions.

please?

janparadowski avatar Dec 22 '15 16:12 janparadowski

The non-SVG render path could use https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow with everything 0 and spread > 0 to generate shadows of uniform spread thickness. Different outline width and height will require multiple shadows of the smaller dimension tiled along the longer dimension.

(box-shadow doesn't generate shadows around the element itself, so would need to use background-color for that part.)


The SVG render path could use BackgroundAlpha and deform it similar to how it does regular outlines.

Arnavion avatar Dec 23 '15 23:12 Arnavion

@Arnavion after download v0.11.0.zip and import libjass.js, it's show error "name.toLowerCase is not a function", but i do not find it in libjass.js, how can i fix it

Statfine avatar Feb 17 '17 03:02 Statfine

You're asking a question in a completely unrelated issue because...?

Arnavion avatar Feb 17 '17 04:02 Arnavion

after I used v0.11.0 and set BorderStyle = 3,but still no background???

Statfine avatar Feb 17 '17 10:02 Statfine

This issue is still open, yes.

Arnavion avatar Feb 17 '17 10:02 Arnavion