# `GSLayer hintsFromValue1:value2:vertical:doLinks:`

*Instance Method*

Builds a PostScript hint from a charstring stem pair.

## Declaration

```swift
func hints(fromValue1 value1: CGFloat, value2: CGFloat, vertical: Bool, doLinks: Bool) -> GSHint?
```

```objc
- (GSHint *) hintsFromValue1:(CGFloat) value1 value2:(CGFloat) value2 vertical:(BOOL) vertical doLinks:(BOOL) doLinks;
```

```python
hintsFromValue1_value2_vertical_doLinks_(value1: float, value2: float, vertical: bool, doLinks: bool) -> GSHint
```

## Parameters

- `value1` — The stem position.
- `value2` — The stem width.
- `vertical` — Whether the stem pair describes a vertical stem.
- `doLinks` — Whether to attach the hint to matching nodes when possible.

## Return Value

The generated hint.

## See Also

### Autohinting

- [`GSLayer autohint`](/Core/GlyphsCore/GSLayer/autohint) — Adds generated PostScript hints to the layer.
- [`GSLayer autohintError:`](/Core/GlyphsCore/GSLayer/autohintError:) — Adds generated PostScript hints to the layer.
- [`GSLayer getAutohintsDoHorizontal:doVertical:error:`](/Core/GlyphsCore/GSLayer/getAutohintsDoHorizontal:doVertical:error:) — Generates PostScript hints for the layer.
- [`GSLayer hintsFromCharString:doLinks:`](/Core/GlyphsCore/GSLayer/hintsFromCharString:doLinks:) — Extracts PostScript hints from Type 2 charstring text.
- [`GSLayer hintsFromCharString:doLinks:ignoreVerticalStems:`](/Core/GlyphsCore/GSLayer/hintsFromCharString:doLinks:ignoreVerticalStems:) — Extracts PostScript hints from Type 2 charstring text.

