---
title: "CTFontGetVerticalTranslationsForGlyphs(_:_:_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontgetverticaltranslationsforglyphs(_:_:_:_:)"
---

# CTFontGetVerticalTranslationsForGlyphs(_:_:_:_:)

Calculates the offset from the default (horizontal) origin to the vertical origin for an array of glyphs.

## Declaration

```swift
func CTFontGetVerticalTranslationsForGlyphs(_ font: CTFont, _ glyphs: UnsafePointer<CGGlyph>, _ translations: UnsafeMutablePointer<CGSize>, _ count: CFIndex)
```

## Parameters

- `font`: The font reference.
- `glyphs`: An array of count number of glyphs.
- `translations`: On output, the computed origin offsets in an array of count number of doc://com.apple.documentation/documentation/CoreFoundation/CGSize objects.
- `count`: The capacity of the glyphs and translations buffers.

## See Also

### Getting Glyph Data

- [CTFontCreatePathForGlyph(_:_:_:)](coretext/ctfontcreatepathforglyph(_:_:_:).md)
- [CTFontGetGlyphWithName(_:_:)](coretext/ctfontgetglyphwithname(_:_:).md)
- [CTFontGetBoundingRectsForGlyphs(_:_:_:_:_:)](coretext/ctfontgetboundingrectsforglyphs(_:_:_:_:_:).md)
- [CTFontGetAdvancesForGlyphs(_:_:_:_:_:)](coretext/ctfontgetadvancesforglyphs(_:_:_:_:_:).md)
- [CTFontGetOpticalBoundsForGlyphs(_:_:_:_:_:)](coretext/ctfontgetopticalboundsforglyphs(_:_:_:_:_:).md)
