From 26b1fa2d48de8090247fb82623172c6e789fa075 Mon Sep 17 00:00:00 2001 From: AshReo <33994521+ashreo@users.noreply.github.com> Date: Fri, 1 Aug 2025 10:42:58 +0800 Subject: [PATCH] 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 --- add_text_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add_text_impl.py b/add_text_impl.py index a5226fe..29f8e1a 100644 --- a/add_text_impl.py +++ b/add_text_impl.py @@ -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