File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 77import sys
88
99doc = ass .document .Document ()
10+ doc .scaled_border_and_shadow = "yes"
1011
1112SCALE = 2
1213DPI = 72
2223 margin_v = 0 ,
2324 fontname = "Garamond" ,
2425 fontsize = 13 * SCALE ,
25- primary_color = ass .document .Color .BLACK
26+ primary_color = ass .data .Color .BLACK
2627))
2728
2829doc .events .append (ass .document .Dialogue (
105106ctx = ass .renderer .Context ()
106107
107108r = ctx .make_renderer ()
108- r .set_fonts (fontconfig_config = "/usr/local/etc/fonts/fonts.conf " )
109+ r .set_fonts (fontconfig_config = "\0 " )
109110r .set_all_sizes (SIZE )
110111
111112sys .stdout .write ("loading document... " )
Original file line number Diff line number Diff line change @@ -456,8 +456,8 @@ def populate(self, doc):
456456 self .wrap_style = doc .wrap_style
457457 self .scaled_border_and_shadow = (doc .scaled_border_and_shadow .lower () == "yes" )
458458
459- self .style_format = ", " .join (doc .styles_field_order ).encode ("utf-8" )
460- self .event_format = ", " .join (doc .events_field_order ).encode ("utf-8" )
459+ self .style_format = ", " .join (doc .SECTIONS [ doc . STYLE_ASS_HEADER ]. field_order ).encode ("utf-8" )
460+ self .event_format = ", " .join (doc .SECTIONS [ doc . EVENTS_HEADER ]. field_order ).encode ("utf-8" )
461461
462462 for d_style in doc .styles :
463463 style = self .make_style ()
You can’t perform that action at this time.
0 commit comments