# `GSLayer slantX:origin:doCorrection:checkSelection:`

*Instance Method*

Slants content horizontally around an origin.

## Declaration

```swift
func slantX(_ angle: CGFloat, origin: CGFloat, doCorrection correction: Bool, checkSelection: Bool)
```

```objc
- (void) slantX:(CGFloat) angle origin:(CGFloat) origin doCorrection:(BOOL) correction checkSelection:(BOOL) checkSelection;
```

```python
slantX_origin_doCorrection_checkSelection_(angle: float, origin: float, correction: bool, checkSelection: bool)
```

## Parameters

- `angle` — The slant angle in degrees.
- `origin` — The horizontal shear origin in layer coordinates.
- `correction` — Whether to preserve stem contrast.
- `checkSelection` — Whether to restrict the operation to selected nodes and elements.

## See Also

### Slanting

- [`GSLayer slantX:origin:correctContrast:correctShape:correctThickness:checkSelection:`](/Core/GlyphsCore/GSLayer/slantX:origin:correctContrast:correctShape:correctThickness:checkSelection:) — Slants content horizontally with configurable outline corrections.
- [`GSLayer slantY:origin:checkSelection:`](/Core/GlyphsCore/GSLayer/slantY:origin:checkSelection:) — Slants content vertically around an origin.
- [`GSLayer doSlantingCorrectionWithAngle:checkSelection:`](/Core/GlyphsCore/GSLayer/doSlantingCorrectionWithAngle:checkSelection:) — Corrects stem contrast for a horizontal slant.
- [`GSLayer doSlantingCorrectionWithAngle:correctContrast:correctShape:correctThickness:checkSelection:`](/Core/GlyphsCore/GSLayer/doSlantingCorrectionWithAngle:correctContrast:correctShape:correctThickness:checkSelection:) — Corrects outlines for a horizontal slant using associated font master stems.
- [`GSLayer doSlantingCorrectionWithAngle:checkSelection:correctContrast:correctShape:correctThickness:horizontalStem:verticalStem:center:`](/Core/GlyphsCore/GSLayer/doSlantingCorrectionWithAngle:checkSelection:correctContrast:correctShape:correctThickness:horizontalStem:verticalStem:center:) — Corrects outlines for a horizontal slant using explicit stem dimensions and a correction center.

