# `GSLayer slantX:origin:correctContrast:correctShape:correctThickness:checkSelection:`

*Instance Method*

Slants content horizontally with configurable outline corrections.

## Declaration

```swift
func slantX(_ angle: CGFloat, origin: CGFloat, correctContrast: CGFloat, correctShape shape: CGFloat, correctThickness thickness: CGFloat, checkSelection: Bool)
```

```objc
- (void) slantX:(CGFloat) angle origin:(CGFloat) origin correctContrast:(CGFloat) correctContrast correctShape:(CGFloat) shape correctThickness:(CGFloat) thickness checkSelection:(BOOL) checkSelection;
```

```python
slantX_origin_correctContrast_correctShape_correctThickness_checkSelection_(angle: float, origin: float, correctContrast: float, shape: float, thickness: float, checkSelection: bool)
```

## Parameters

- `angle` — The slant angle in degrees.
- `origin` — The horizontal shear origin in layer coordinates.
- `correctContrast` — The amount of stem contrast correction.
- `shape` — The amount of shape correction.
- `thickness` — The amount of vertical stem thickness correction.
- `checkSelection` — Whether to restrict the operation to selected nodes and elements.

## See Also

### Slanting

- [`GSLayer slantX:origin:doCorrection:checkSelection:`](/Core/GlyphsCore/GSLayer/slantX:origin:doCorrection:checkSelection:) — Slants content horizontally around an origin.
- [`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.

