<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTextDisplayFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@T@CMTextDisplayFlags"
  },
  "title" : "CMTextDisplayFlags"
}
-->

# CMTextDisplayFlags

An integer value that describes the display mode flags for text media.

```
typealias CMTextDisplayFlags = UInt32
```

## Topics

### Constants

[`kCMTextDisplayFlag_scrollIn`](/documentation/CoreMedia/kCMTextDisplayFlag_scrollIn)

A flag that describes the text scrolls into the display region.

[`kCMTextDisplayFlag_scrollOut`](/documentation/CoreMedia/kCMTextDisplayFlag_scrollOut)

A flag that describes the text scrolls out of the display region.

[`kCMTextDisplayFlag_scrollDirectionMask`](/documentation/CoreMedia/kCMTextDisplayFlag_scrollDirectionMask)

A flag that describes the scrolling direction is set by a two-bit field, obtained from displayFlags using kCMTextDisplayFlag_scrollDirectionMask.

[`kCMTextDisplayFlag_scrollDirection_bottomToTop`](/documentation/CoreMedia/kCMTextDisplayFlag_scrollDirection_bottomToTop)

A flag that describes the text is vertically scrolled up (“credits style”), entering from the bottom and leaving towards the top.

[`kCMTextDisplayFlag_scrollDirection_rightToLeft`](/documentation/CoreMedia/kCMTextDisplayFlag_scrollDirection_rightToLeft)

A flag that describes the text is horizontally scrolled (“marquee style”), entering from the right and leaving towards the left.

[`kCMTextDisplayFlag_scrollDirection_topToBottom`](/documentation/CoreMedia/kCMTextDisplayFlag_scrollDirection_topToBottom)

A flag that describes the text is vertically scrolled down, entering from the top and leaving towards the bottom.

[`kCMTextDisplayFlag_scrollDirection_leftToRight`](/documentation/CoreMedia/kCMTextDisplayFlag_scrollDirection_leftToRight)

A flag that describes the text is horizontally scrolled, entering from the left and leaving towards the right.

[`kCMTextDisplayFlag_continuousKaraoke`](/documentation/CoreMedia/kCMTextDisplayFlag_continuousKaraoke)

A flag that describes enabling the continuous karaoke mode where the range of karaoke highlighting extends to include additional ranges rather than the highlighting moves onto the next range.

[`kCMTextDisplayFlag_writeTextVertically`](/documentation/CoreMedia/kCMTextDisplayFlag_writeTextVertically)

A flag that describes the text renders vertically.

[`kCMTextDisplayFlag_fillTextRegion`](/documentation/CoreMedia/kCMTextDisplayFlag_fillTextRegion)

A flag that describes the subtitle display bounds are to be filled with the color specified by `kCMTextFormatDescriptionExtension_BackgroundColor`.

[`kCMTextDisplayFlag_forcedSubtitlesPresent`](/documentation/CoreMedia/kCMTextDisplayFlag_forcedSubtitlesPresent)

A flag that describes forcing subtitles are present, for example, a subtitle which only displays during foreign language sections of the video. Check individual samples to determine what type of subtitle is contained.

[`kCMTextDisplayFlag_allSubtitlesForced`](/documentation/CoreMedia/kCMTextDisplayFlag_allSubtitlesForced)

A flag that describes treating all subtitle samples as if they contain forced subtitles.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)