The [V4 Styles] section starts with a Format: line naming the
fields, then has one Style: line per style. Commas are not allowed in the
name of a style.
Fields
| Field | Values | Meaning |
|---|---|---|
Name | Text | Case-sensitive, no commas. |
Fontname | Text | Font face, case-sensitive. Arial is used if it is not found. |
Fontsize | Number | Font size. |
PrimaryColour | Colour | The normal text colour. |
SecondaryColour | Colour | Used for subtitles shifted by a collision. |
TertiaryColour | Colour | Outline colour. OutlineColour in ASS. |
BackColour | Colour | Colour of the outline or shadow. |
Bold | -1, 0 | −1 is true. |
Italic | -1, 0 | −1 is true. |
BorderStyle | 1, 3 | 1: outline and drop shadow. 3: opaque box. |
Outline | 0–4 | Outline width in pixels. |
Shadow | 0–4 | Shadow depth in pixels. |
Alignment | Code | Position on screen. |
MarginL | Pixels | Left margin. |
MarginR | Pixels | Right margin. |
MarginV | Pixels | Distance from the bottom, or from the top for top subtitles. Ignored for mid subtitles. |
AlphaLevel | Number | Listed, but not used by SubStation Alpha. |
Encoding | Number | Font character set, usually 0. |
A colour is a long integer holding blue, green and red, written in decimal or as
&HBBGGRR.
Alignment
These are the original SubStation Alpha codes, not the keypad numbers of ASS.
| Left | Centre | Right | |
|---|---|---|---|
| Sub (bottom) | 1 | 2 | 3 |
| Toptitle (add 4) | 5 | 6 | 7 |
| Midtitle (add 8) | 9 | 10 | 11 |
libass, for compatibility with VSFilter, reads an alignment of 8 as 3 and 4 as 11 in an SSA script.