<!--
{
  "documentType" : "article",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/horizontal-alignment-modes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Horizontal alignment modes"
}
-->

# Horizontal alignment modes

These constants are used by the [`alignmentMode`](/documentation/QuartzCore/CATextLayer/alignmentMode) property.

## Topics

### Constants

[`natural`](/documentation/QuartzCore/CATextLayerAlignmentMode/natural)

Use the natural alignment of the text’s script.

[`left`](/documentation/QuartzCore/CATextLayerAlignmentMode/left)

Text is visually left aligned.

[`right`](/documentation/QuartzCore/CATextLayerAlignmentMode/right)

Text is visually right aligned.

[`center`](/documentation/QuartzCore/CATextLayerAlignmentMode/center)

Text is visually center aligned.

[`justified`](/documentation/QuartzCore/CATextLayerAlignmentMode/justified)

Text is justified.



---

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)