# `GSLayer doSlantingCorrectionWithAngle:checkSelection:correctContrast:correctShape:correctThickness:horizontalStem:verticalStem:center:`

*Instance Method*

Corrects outlines for a horizontal slant using explicit stem dimensions and a correction center.

## Declaration

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

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

```python
doSlantingCorrectionWithAngle_checkSelection_correctContrast_correctShape_correctThickness_horizontalStem_verticalStem_center_(angle: float, checkSelection: bool, correctContrast: float, correctShape: float, correctThickness: float, horizontalStem: float, verticalStem: float, center: NSPoint)
```

## Parameters

- `angle` — The slant angle in degrees.
- `checkSelection` — Whether to restrict the operation to selected nodes.
- `correctContrast` — The amount of stem contrast correction.
- `correctShape` — The amount of shape correction.
- `correctThickness` — The amount of vertical stem thickness correction.
- `horizontalStem` — The horizontal stem dimension used for correction.
- `verticalStem` — The vertical stem dimension used for correction.
- `center` — The center for shape correction in layer coordinates.

## 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:correctContrast:correctShape:correctThickness:checkSelection:`](/Core/GlyphsCore/GSLayer/doSlantingCorrectionWithAngle:correctContrast:correctShape:correctThickness:checkSelection:) — Corrects outlines for a horizontal slant using associated font master stems.

