Function

CTFontGetGlyphCount

Returns the number of glyphs of the given font.

Declaration

CFIndex CTFontGetGlyphCount(CTFontRef font);

Parameters

font

The font reference.

Return Value

The number of glyphs in the font.

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.

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.

CTFontGetSlantAngle

Returns the slant angle of the given font.

CTFontGetCapHeight

Returns the cap-height metric of the given font.

CTFontGetXHeight

Returns the x-height metric of the given font.