---
title: CTRubyAlignment
framework: coretext
role: symbol
role_heading: Enumeration
path: coretext/ctrubyalignment
---

# CTRubyAlignment

Constants that specify how to align the ruby text and the base text relative to each other when they have different lengths.

## Declaration

```swift
enum CTRubyAlignment
```

## Topics

### Constants

- [CTRubyAlignment.auto](coretext/ctrubyalignment/auto.md)
- [CTRubyAlignment.start](coretext/ctrubyalignment/start.md)
- [CTRubyAlignment.center](coretext/ctrubyalignment/center.md)
- [CTRubyAlignment.end](coretext/ctrubyalignment/end.md)
- [CTRubyAlignment.distributeLetter](coretext/ctrubyalignment/distributeletter.md)
- [CTRubyAlignment.distributeSpace](coretext/ctrubyalignment/distributespace.md)
- [CTRubyAlignment.lineEdge](coretext/ctrubyalignment/lineedge.md)
- [CTRubyAlignment.invalid](coretext/ctrubyalignment/invalid.md)

### Initializers

- [init(rawValue:)](coretext/ctrubyalignment/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Enumerations

- [CTFontDescriptorMatchingState](coretext/ctfontdescriptormatchingstate.md)
- [CTFontManagerAutoActivationSetting](coretext/ctfontmanagerautoactivationsetting.md)
- [CTFontManagerError](coretext/ctfontmanagererror.md)
- [CTFontManagerScope](coretext/ctfontmanagerscope.md)
- [CTLineBoundsOptions](coretext/ctlineboundsoptions.md)
- [CTRubyOverhang](coretext/ctrubyoverhang.md)
- [CTRubyPosition](coretext/ctrubyposition.md)
