From 4955e14e34ce815f06d9415b6e42398c5972997d Mon Sep 17 00:00:00 2001 From: Kratos2k7 Date: Mon, 16 Mar 2026 08:18:48 +0500 Subject: [PATCH] fix: remove wordspacing from rich-caption --- schemas/richcaptionasset.yaml | 2 +- schemas/richcaptionproperties.yaml | 40 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/schemas/richcaptionasset.yaml b/schemas/richcaptionasset.yaml index 511fc8e..70dd5eb 100644 --- a/schemas/richcaptionasset.yaml +++ b/schemas/richcaptionasset.yaml @@ -24,7 +24,7 @@ RichCaptionAsset: $ref: "./richcaptionproperties.yaml#/RichCaptionFont" style: description: Text style properties including spacing, line height, and transformations. - $ref: "./richtextproperties.yaml#/RichTextStyle" + $ref: "./richcaptionproperties.yaml#/RichCaptionStyle" stroke: description: Text stroke (outline) properties for inactive words. $ref: "./richtextproperties.yaml#/RichTextStroke" diff --git a/schemas/richcaptionproperties.yaml b/schemas/richcaptionproperties.yaml index 47c007e..88ccc89 100644 --- a/schemas/richcaptionproperties.yaml +++ b/schemas/richcaptionproperties.yaml @@ -145,3 +145,43 @@ RichCaptionFont: example: "#000000" additionalProperties: false type: object + +RichCaptionStyle: + description: Text style properties for rich captions. Same as RichTextStyle but without wordSpacing. + properties: + letterSpacing: + description: Additional spacing between letters in pixels. Can be negative for tighter spacing. + type: number + default: 0 + example: 2 + lineHeight: + description: The line height as a multiplier of the font size. Must be between 0 and 10. + type: number + minimum: 0 + maximum: 10 + default: 1.2 + example: 1.5 + textTransform: + description: Text transformation to apply. + type: string + enum: + - none + - uppercase + - lowercase + - capitalize + default: "none" + example: "uppercase" + textDecoration: + description: Text decoration to apply. + type: string + enum: + - none + - underline + - line-through + default: "none" + example: "underline" + gradient: + description: Gradient fill for text instead of solid color. + $ref: "./richtextproperties.yaml#/RichTextGradient" + additionalProperties: false + type: object