Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion schemas/richcaptionasset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
40 changes: 40 additions & 0 deletions schemas/richcaptionproperties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading