Function

CTFontGetSlantAngle

Returns the slant angle of the given font.

Declaration

CGFloat CTFontGetSlantAngle(CTFontRef font);

Parameters

font

The font reference.

Return Value

The transformed slant angle of the font. This is equivalent to the italic or caret angle with any skew from the transformation matrix applied.

See Also

Getting Font Metrics

CTFontGetAscent

Returns the scaled font-ascent metric of the given font.

CTFontGetDescent

Returns the scaled font-descent metric of the given font.

CTFontGetLeading

Returns the scaled font-leading metric of the given font.

CTFontGetUnitsPerEm

Returns the units-per-em metric of the given font.

CTFontGetGlyphCount

Returns the number of glyphs of the given font.

CTFontGetBoundingBox

Returns the scaled bounding box of the given font.

CTFontGetUnderlinePosition

Returns the scaled underline position of the given font.

CTFontGetUnderlineThickness

Returns the scaled underline-thickness metric of the given font.

CTFontGetCapHeight

Returns the cap-height metric of the given font.

CTFontGetXHeight

Returns the x-height metric of the given font.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software