Struct aspasia::substation::ass::AssStyle
source · pub struct AssStyle {Show 23 fields
pub name: String,
pub fontname: String,
pub fontsize: i64,
pub primary_colour: String,
pub secondary_colour: String,
pub outline_colour: String,
pub back_colour: String,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub strike_out: bool,
pub scale_x: i64,
pub scale_y: i64,
pub spacing: i64,
pub angle: f64,
pub border_style: i64,
pub outline: i64,
pub shadow: i64,
pub alignment: i64,
pub margin_l: i64,
pub margin_r: i64,
pub margin_v: i64,
pub encoding: i64,
}Expand description
Style in a .ass file
Fields§
§name: StringName of style
fontname: StringName of font used to display text
fontsize: i64Font size of text
primary_colour: StringColour that text will be rendered as
secondary_colour: StringColour that text will be rendered as in the case it is moved due to a collision
outline_colour: StringColour that text will be rendered as in the case it is moved due to a collision with text that appears in the secondary colour
back_colour: StringColour of text shadow or text outline
bold: boolWhether text is bolded
italic: boolWhether text is italicised
underline: boolWhether text is underlined
strike_out: boolWhether text is stricken out
scale_x: i64Width scale of text
scale_y: i64Height scale of text
spacing: i64Font spacing of text
angle: f64Number of degrees to rotate text by
border_style: i64Style of text border
outline: i64Width of text outline
shadow: i64Depth of text shadow
alignment: i64Alignment of text on screen
margin_l: i64Left margin in pixels
margin_r: i64Right margin in pixels
margin_v: i64Vertical margin in pixels
encoding: i64Encoding of text represented as a number