# `GSLayer doSlantingCorrectionWithAngle:checkSelection:`

*Instance Method*

Corrects stem contrast for a horizontal slant.

## Declaration

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

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

```python
doSlantingCorrectionWithAngle_checkSelection_(angle: float, checkSelection: bool)
```

## Parameters

- `angle` — The slant angle in degrees.
- `checkSelection` — Whether to restrict the operation to selected nodes.

## Discussion

Stem dimensions are taken from the associated font master.

## 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: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.

