mirror of
https://github.com/sun-guannan/CapCutAPI.git
synced 2025-11-25 03:15:00 +08:00
add subtitle can set font now
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user