Enhanced text features: multi-style, shadow, and background support

Enhanced text features: multi-style, shadow, and background support

- Added text multi-style support with TextStyleRange
- Implemented text shadow effects with configurable parameters
- Added text background with various style options
- Updated example.py with comprehensive test cases
- Fixed import issues in add_text_impl.py
This commit is contained in:
AshReo
2025-08-01 10:42:58 +08:00
committed by sun-guannan
parent 84ff20548d
commit 26b1fa2d48

View File

@@ -2,7 +2,7 @@ import pyJianYingDraft as draft
from settings.local import IS_CAPCUT_ENV
from util import generate_draft_url, hex_to_rgb
from pyJianYingDraft import trange, Font_type
from typing import Optional
from typing import Optional, List # add List type hint
from pyJianYingDraft import exceptions
from create_draft import get_or_create_draft
from pyJianYingDraft.text_segment import TextBubble, TextEffect, TextStyleRange