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:
@@ -12,6 +12,7 @@ def add_subtitle_impl(
|
||||
track_name: str = "subtitle",
|
||||
time_offset: float = 0,
|
||||
# Font style parameters
|
||||
font: str = None,
|
||||
font_size: float = 8.0,
|
||||
bold: bool = False,
|
||||
italic: bool = False,
|
||||
@@ -153,6 +154,7 @@ def add_subtitle_impl(
|
||||
track_name=track_name,
|
||||
time_offset=int(time_offset * 1000000), # Convert seconds to microseconds
|
||||
text_style=text_style,
|
||||
font=font,
|
||||
clip_settings=clip_settings,
|
||||
style_reference=style_reference,
|
||||
border=text_border,
|
||||
|
||||
Reference in New Issue
Block a user