styles
AMAZON_EMBER_PRESET = [amazon_ember_default, *get_complimenting_styles(amazon_ember_default)]
module-attribute
CABINF_PRESET = [cabinf_default, *get_complimenting_styles(cabinf_default)]
module-attribute
A custom Cabin variant with adjusted font size and margins and an em dash closer to Gandhi Sans.
Made by RaptoR.
From what I know there's no "official" page for this. You can download it here.
CABIN_PRESET = [cabin_default, *get_complimenting_styles(cabin_default)]
module-attribute
FIRA_PRESET = [fira_default, *get_complimenting_styles(fira_default)]
module-attribute
Fira Sans Medium preset. https://fonts.google.com/specimen/Fira+Sans
GJM_GANDHI_PRESET = [gandhi_default, *get_complimenting_styles(gandhi_default)]
module-attribute
A GandhiSans-Bold preset. The font is commonly used by GJM and MTBB and a few other groups. https://www.fontsquirrel.com/fonts/gandhi-sans
LATO_PRESET = [lato_default, *get_complimenting_styles(lato_default)]
module-attribute
LTF_PRESET = [ltf_default, *get_complimenting_styles(ltf_default)]
module-attribute
LinotypeFinnegan Medium preset. The font is commonly used by Commie and Kaleido.
It's, apparently, technically a paid font, but you can probably find it in a bunch of github repos or in the attachments of plenty of releases.
MERRIWEATHER_PRESET = [merriweather_default, *get_complimenting_styles(merriweather_default)]
module-attribute
__all__ = ['gandhi_default', 'GJM_GANDHI_PRESET', 'cabin_default', 'CABIN_PRESET', 'cabinf_default', 'CABINF_PRESET', 'lato_default', 'LATO_PRESET', 'merriweather_default', 'MERRIWEATHER_PRESET', 'amazon_ember_default', 'AMAZON_EMBER_PRESET', 'ltf_default', 'LTF_PRESET', 'fira_default', 'FIRA_PRESET', 'edit_style', 'resize_preset', 'default_style_args', 'get_complimenting_styles']
module-attribute
amazon_ember_default = Style(name='Default', fontname='Amazon Ember', fontsize=78.0, outline=3.5, shadow=1.3, margin_l=180, margin_r=180, margin_v=55, **default_style_args)
module-attribute
cabin_default = Style(name='Default', fontname='Cabin', fontsize=85.0, outline=3.2, shadow=1.5, margin_l=180, margin_r=180, margin_v=50, **default_style_args)
module-attribute
cabinf_default = edit_style(cabin_default, 'Default', fontname='Cabin F', fontsize=75.0, margin_v=55)
module-attribute
default_style_args = {'bold': True, 'italic': False, 'underline': False, 'strike_out': False, 'scale_x': 100.0, 'scale_y': 100.0, 'spacing': 0.0, 'angle': 0.0, 'encoding': 1, 'alignment': 2, 'border_style': 1, 'primary_color': Color(r=255, g=255, b=255, a=0), 'secondary_color': Color(r=255, g=0, b=0, a=0), 'outline_color': Color(r=0, g=0, b=0, a=0), 'back_color': Color(r=0, g=0, b=0, a=160)}
module-attribute
fira_default = Style(name='Default', fontname='Fira Sans Medium', fontsize=70.0, outline=3.6, shadow=2.5, margin_l=185, margin_r=185, margin_v=56, **default_style_args | dict(bold=False, scale_x=103.0))
module-attribute
gandhi_default = Style(name='Default', fontname='Gandhi Sans', fontsize=75.0, outline=3.6, shadow=1.5, margin_l=180, margin_r=180, margin_v=55, **default_style_args)
module-attribute
lato_default = Style(name='Default', fontname='Lato', fontsize=75.0, outline=3.2, shadow=1.5, margin_l=180, margin_r=180, margin_v=55, **default_style_args)
module-attribute
ltf_default = Style(name='Default', fontname='LTFinnegan Medium', fontsize=72.0, outline=3.6, shadow=1.5, margin_l=185, margin_r=185, margin_v=60, **default_style_args | dict(bold=False))
module-attribute
merriweather_default = Style(name='Default', fontname='Merriweather', fontsize=78.0, outline=3.3, shadow=1.5, margin_l=180, margin_r=180, margin_v=55, **default_style_args)
module-attribute
edit_style
Copies a style to set a new name and other arguments via kwargs
Source code in muxtools/subtitle/styles.py
get_complimenting_styles
Generates colored Alt/Overlap and Flashback styles for a given style.
Source code in muxtools/subtitle/styles.py
resize_preset
Resize a list of styles to match a resolution.
This assumes the passed styles are for a 1080p script.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
preset
|
list[Style]
|
List of styles to resize |
required |
target_height
|
int | Document
|
Either a height integer or an ass document to get the height from |
360
|
Returns:
Type | Description |
---|---|
list[Style]
|
A list of deepcopied styles. This doesn't edit the input styles. |