From 05d0a6121c8ec386cbb29dcd6f8a2cc810abade9 Mon Sep 17 00:00:00 2001 From: Kratos2k7 Date: Thu, 2 Apr 2026 19:27:12 +0500 Subject: [PATCH] fix: enhance RichCaptionActiveFont schema by adding font family and weight properties, and removing scale property --- schemas/richcaptionproperties.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/schemas/richcaptionproperties.yaml b/schemas/richcaptionproperties.yaml index 3224b2a..4122efd 100644 --- a/schemas/richcaptionproperties.yaml +++ b/schemas/richcaptionproperties.yaml @@ -2,6 +2,15 @@ RichCaptionActiveFont: description: Font properties for the active/highlighted word. type: object properties: + family: + description: The font family for the active word. Inherits from the base font.family when not set. + type: string + example: "Roboto" + weight: + description: > + The weight of the font for the active word. Can be a number (100-900) or a string. Inherits from + the base font.weight when not set. + default: "400" color: description: The active word color using hexadecimal color notation. type: string @@ -20,7 +29,7 @@ RichCaptionActiveFont: default: 1 example: 1 size: - description: The font size of the active word in pixels. Overrides the scale property when set. + description: The font size of the active word in pixels. type: number minimum: 1 maximum: 500 @@ -57,13 +66,6 @@ RichCaptionActive: - type: string enum: - none - scale: - description: Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger. - type: number - minimum: 0.5 - maximum: 2.0 - default: 1.0 - example: 1.2 additionalProperties: false RichCaptionAnimation: @@ -177,7 +179,7 @@ RichCaptionStyle: default: "none" example: "uppercase" size: - description: The font size of the active word in pixels. Overrides the scale property when set. + description: The font size in pixels. Can be used as an alternative to font.size. type: number minimum: 1 maximum: 500