<!--
{
  "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/CTRubyAlignment/lineEdge",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@E@CTRubyAlignment@kCTRubyAlignmentLineEdge"
  },
  "title" : "CTRubyAlignment.lineEdge"
}
-->

# CTRubyAlignment.lineEdge

Aligns the ruby text to an adjacent line edge.

```
case lineEdge
```

## Discussion

If the ruby text is adjacent to a line edge, Core Text aligns the end of the ruby text adjacent to the line edge to that line edge. This only applies if the width of the ruby text is greater than the width of the base text; otherwise, the alignment is [`CTRubyAlignment.auto`](/documentation/CoreText/CTRubyAlignment/auto).

If the ruby text isn’t adjacent to a line edge, the alignment is [`CTRubyAlignment.auto`](/documentation/CoreText/CTRubyAlignment/auto).

---

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)