CGFont CGFont Class


Font support.

public class CGFont : IDisposable, ObjCRuntime.INativeObject
type CGFont = class
    interface INativeObject
    interface IDisposable


Ascent Ascent

Returns the ascent of the font.

CapHeight CapHeight

Returns the cap height of the font.

Descent Descent

Returns the descent of the font.

FontBBox FontBBox

Returns a rectangle specifing the bounding box of the font.

FullName FullName

Returns the full name of the font.

Handle Handle

Handle (pointer) to the unmanaged object representation.

ItalicAngle ItalicAngle
Leading Leading
NumberOfGlyphs NumberOfGlyphs
PostScriptName PostScriptName
StemV StemV
UnitsPerEm UnitsPerEm
XHeight XHeight


CreateFromProvider(CGDataProvider) CreateFromProvider(CGDataProvider)

Creates a font from a data provider.

CreateWithFontName(String) CreateWithFontName(String)

Creates a new CGFont representing the specified PostScript or full name.

Dispose() Dispose()

Releases the resources used by the CGFont object.

Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CGFont object.

Finalize() Finalize()

Finalizer for the CGFont object

GetGlyphWithGlyphName(String) GetGlyphWithGlyphName(String)

Returns the glyph for the specified glyph name.

GetTypeID() GetTypeID()

Type identifier for the CoreGraphics.CGFont type.

GlyphNameForGlyph(UInt16) GlyphNameForGlyph(UInt16)
ToCTFont(nfloat) ToCTFont(nfloat)
ToCTFont(nfloat, CGAffineTransform) ToCTFont(nfloat, CGAffineTransform)

Applies to