# `GSLayer doSlantingCorrectionWithAngle:correctContrast:correctShape:correctThickness:checkSelection:`

*Instance Method*

Corrects outlines for a horizontal slant using associated font master stems.

## Declaration

```swift
func doSlantingCorrection(withAngle angle: CGFloat, correctContrast: CGFloat, correctShape: CGFloat, correctThickness: CGFloat, checkSelection: Bool)
```

```objc
- (void) doSlantingCorrectionWithAngle:(CGFloat) angle correctContrast:(CGFloat) correctContrast correctShape:(CGFloat) correctShape correctThickness:(CGFloat) correctThickness checkSelection:(BOOL) checkSelection;
```

```python
doSlantingCorrectionWithAngle_correctContrast_correctShape_correctThickness_checkSelection_(angle: float, correctContrast: float, correctShape: float, correctThickness: float, checkSelection: bool)
```

## Parameters

- `angle` — The slant angle in degrees.
- `correctContrast` — The amount of stem contrast correction.
- `correctShape` — The amount of shape correction.
- `correctThickness` — The amount of vertical stem thickness correction.
- `checkSelection` — Whether to restrict the operation to selected nodes.

## See Also

### Slanting

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

