Interface CaptionFontStyleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
BurnInDestinationProps,DvbSubDestinationProps
- All Known Implementing Classes:
BurnInDestinationProps.Jsii$Proxy,CaptionFontStyleProps.Jsii$Proxy,DvbSubDestinationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:40.952Z")
@Stability(Experimental)
public interface CaptionFontStyleProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Font and positioning settings for a rendered caption output (burn-in or DVB-Sub).
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;
CaptionAlignment captionAlignment;
CaptionBackgroundColor captionBackgroundColor;
CaptionFontColor captionFontColor;
CaptionFontSize captionFontSize;
CaptionOutlineColor captionOutlineColor;
CaptionShadowColor captionShadowColor;
CaptionTeletextGridControl captionTeletextGridControl;
FileLocation fileLocation;
CaptionFontStyleProps captionFontStyleProps = CaptionFontStyleProps.builder()
.alignment(captionAlignment)
.backgroundColor(captionBackgroundColor)
.backgroundOpacity(123)
.font(fileLocation)
.fontColor(captionFontColor)
.fontOpacity(123)
.fontResolution(123)
.fontSize(captionFontSize)
.outlineColor(captionOutlineColor)
.outlineSize(123)
.shadowColor(captionShadowColor)
.shadowOpacity(123)
.shadowXOffset(123)
.shadowYOffset(123)
.subtitleRows("subtitleRows")
.teletextGridControl(captionTeletextGridControl)
.xPosition(123)
.yPosition(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCaptionFontStylePropsstatic final classAn implementation forCaptionFontStyleProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default CaptionAlignment(experimental) Caption alignment.default CaptionBackgroundColor(experimental) The color of the rectangle behind the captions.default Number(experimental) The opacity of the background rectangle (0 transparent ..default FileLocationgetFont()(experimental) An external font file (.ttf or .tte) used for burn-in.default CaptionFontColor(experimental) The color of the burned-in captions.default Number(experimental) The opacity of the burned-in captions (0 transparent ..default Number(experimental) The font resolution in DPI.default CaptionFontSize(experimental) Font size —CaptionFontSize.AUTOto scale with the output, orCaptionFontSize.of(points)for an exact size in points.default CaptionOutlineColor(experimental) The font outline color.default Number(experimental) The font outline size in pixels.default CaptionShadowColor(experimental) The color of the shadow cast by the captions.default Number(experimental) The opacity of the shadow (0 transparent ..default Number(experimental) The horizontal offset of the shadow in pixels (negative shifts left).default Number(experimental) The vertical offset of the shadow in pixels (negative shifts up).default String(experimental) For Teletext input, the number of lines for the captions bitmap.default CaptionTeletextGridControl(experimental) Whether a fixed grid is used to generate the subtitle bitmap (Teletext input).default Number(experimental) The horizontal position of the captions in pixels from the left.default Number(experimental) The vertical position of the captions in pixels from the top.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlignment
(experimental) Caption alignment.With explicit x/y positions, the font is justified relative to them.
Default: CaptionAlignment.CENTERED
-
getBackgroundColor
(experimental) The color of the rectangle behind the captions.Default: - service default
-
getBackgroundOpacity
(experimental) The opacity of the background rectangle (0 transparent .. 255 opaque).Default: - service default
-
getFont
(experimental) An external font file (.ttf or .tte) used for burn-in. Provide aFileLocationreferencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or a URL (FileLocation.url).Default: - service default font
-
getFontColor
(experimental) The color of the burned-in captions.Default: CaptionFontColor.WHITE
-
getFontOpacity
(experimental) The opacity of the burned-in captions (0 transparent .. 255 opaque).Default: 255
-
getFontResolution
(experimental) The font resolution in DPI.Default: 96
-
getFontSize
(experimental) Font size —CaptionFontSize.AUTOto scale with the output, orCaptionFontSize.of(points)for an exact size in points.Default: CaptionFontSize.AUTO
-
getOutlineColor
(experimental) The font outline color.Default: CaptionOutlineColor.BLACK
-
getOutlineSize
(experimental) The font outline size in pixels.Default: 2
-
getShadowColor
(experimental) The color of the shadow cast by the captions.Default: CaptionShadowColor.NONE
-
getShadowOpacity
(experimental) The opacity of the shadow (0 transparent .. 255 opaque).Default: 0
-
getShadowXOffset
(experimental) The horizontal offset of the shadow in pixels (negative shifts left).Default: - service default
-
getShadowYOffset
(experimental) The vertical offset of the shadow in pixels (negative shifts up).Default: - service default
-
getSubtitleRows
(experimental) For Teletext input, the number of lines for the captions bitmap.Default: - service default
-
getTeletextGridControl
(experimental) Whether a fixed grid is used to generate the subtitle bitmap (Teletext input).Default: CaptionTeletextGridControl.FIXED
-
getXPosition
(experimental) The horizontal position of the captions in pixels from the left.Default: - determined by `alignment`
-
getYPosition
(experimental) The vertical position of the captions in pixels from the top.Default: - positioned towards the bottom
-
builder
- Returns:
- a
CaptionFontStyleProps.BuilderofCaptionFontStyleProps
-