<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTRubyPosition",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@E@CTRubyPosition"
  },
  "title" : "CTRubyPosition"
}
-->

# CTRubyPosition

Constants that specify the position of the ruby text relative to to the base text.

```
enum CTRubyPosition
```

## Topics

### Constants

[`CTRubyPosition.before`](/documentation/CoreText/CTRubyPosition/before)

The ruby text is positioned before the base text, appearing above horizontal text and to the right of vertical text.

[`CTRubyPosition.after`](/documentation/CoreText/CTRubyPosition/after)

The ruby text is positioned after the base text, appearing below horizontal text and to the left of vertical text.

[`CTRubyPosition.interCharacter`](/documentation/CoreText/CTRubyPosition/interCharacter)

The ruby text is positioned to the right of the base text, regardless of whether it’s horizontal or vertical.

[`CTRubyPosition.inline`](/documentation/CoreText/CTRubyPosition/inline)

The ruby text follows the base text with no special styling.

[`CTRubyPosition.count`](/documentation/CoreText/CTRubyPosition/count)

A constant that accounts for all ruby positions during ruby annotation creation.



---

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)