Class CaptionFontSize

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.medialive.alpha.CaptionFontSize
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:40.952Z") @Stability(Experimental) public class CaptionFontSize extends software.amazon.jsii.JsiiObject
(experimental) Font size for burn-in and DVB-Sub captions.

Use

invalid reference
CaptionFontSize.AUTO
to scale the font size with the output resolution, or
invalid reference
CaptionFontSize.of
to set an exact size in points.

Example:

 // Define a caption selector on the input attachment (see Input Attachment Settings below)
 CaptionSelector captionSelector = CaptionSelector.embedded("captions");
 // WebVTT captions — packaged alongside the video encode in the same output
 EncodeConfiguration webvtt = EncodeConfiguration.caption(CaptionEncodeProps.builder()
         .name("eng_webvtt")
         .captionSelectorName(captionSelector.getName())
         .languageCode("eng")
         .languageDescription("English")
         .destination(CaptionDestination.webvtt())
         .build());
 // Burned-in captions — rendered into the video, styled via the burn-in options
 EncodeConfiguration burnIn = EncodeConfiguration.caption(CaptionEncodeProps.builder()
         .name("eng_burnin")
         .captionSelectorName(captionSelector.getName())
         .destination(CaptionDestination.burnIn(BurnInDestinationProps.builder()
                 .alignment(CaptionAlignment.CENTERED)
                 .fontColor(CaptionFontColor.WHITE)
                 .outlineColor(CaptionOutlineColor.BLACK)
                 .fontSize(CaptionFontSize.AUTO)
                 .build()))
         .build());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CaptionFontSize
    (experimental) Scale the font size automatically to match the output resolution.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CaptionFontSize(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    CaptionFontSize(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    of(Number points)
    (experimental) An exact font size, in points.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • AUTO

      @Stability(Experimental) public static final CaptionFontSize AUTO
      (experimental) Scale the font size automatically to match the output resolution.
  • Constructor Details

    • CaptionFontSize

      protected CaptionFontSize(software.amazon.jsii.JsiiObjectRef objRef)
    • CaptionFontSize

      protected CaptionFontSize(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • of

      @Stability(Experimental) @NotNull public static CaptionFontSize of(@NotNull Number points)
      (experimental) An exact font size, in points.

      Parameters:
      points - the font size in points;. This parameter is required.