add subtitle can set font now

This commit is contained in:
sun-guannan
2025-07-19 09:52:37 +08:00
parent 512b1a57e4
commit ae0de1dca3
3 changed files with 19 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ def add_subtitle():
time_offset = data.get('time_offset', 0.0) # Default 0 seconds
# Font style parameters
font = data.get('font', None)
font_size = data.get('font_size', 5.0) # Default size 5.0
bold = data.get('bold', False) # Default not bold
italic = data.get('italic', False) # Default not italic
@@ -276,6 +277,7 @@ def add_subtitle():
track_name=track_name,
time_offset=time_offset,
# Font style parameters
font = font,
font_size=font_size,
bold=bold,
italic=italic,