Function

CTFontGetVerticalTranslationsForGlyphs(_:_:_:_:)

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

Declaration

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 CGSize objects.

count

The capacity of the glyphs and translations buffers.

See Also

Getting Glyph Data

func CTFontGetGlyphWithName(CTFont, CFString) -> CGGlyph

Returns the CGGlyph value for the specified glyph name in the given font.

func CTFontGetBoundingRectsForGlyphs(CTFont, CTFontOrientation, UnsafePointer<CGGlyph>, UnsafeMutablePointer<CGRect>?, CFIndex) -> CGRect

Calculates the bounding rects for an array of glyphs and returns the overall bounding rectangle for the glyph run.