iOS Guides | Samples

CoreGraphics.CGFont Class

Font support.

See Also: CGFont

Syntax

public class CGFont : INativeObject, IDisposable

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGFont are listed below.

See Also: Object

Public Properties

[read-only]
AscentInt32. Returns the ascent of the font.
[read-only]
CapHeightInt32. Returns the cap height of the font.
[read-only]
DescentInt32. Returns the descent of the font.
[read-only]
FontBBoxCGRect. Returns a rectangle specifing the bounding box of the font.
[read-only]
FullNameString. Returns the full name of the font.
[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
[read-only]
ItalicAnglenfloat.
[read-only]
LeadingInt32.
[read-only]
NumberOfGlyphsnint.
[read-only]
PostScriptNameString.
[read-only]
StemVnfloat.
[read-only]
UnitsPerEmInt32.
[read-only]
XHeightInt32.

Public Methods

static
CreateFromProvider(CGDataProvider) : CGFont
Creates a font from a data provider.
static
CreateWithFontName(String) : CGFont
Creates a new CGFont representing the specified PostScript or full name.
Dispose()
Releases the resources used by the CGFont object.
Finalize()
Finalizer for the CGFont object
GetGlyphWithGlyphName(String) : UInt16
Returns the glyph for the specified glyph name.
static
GetTypeID() : nint
Type identifier for the CoreGraphics.CGFont type.
GlyphNameForGlyph(UInt16) : String
ToCTFont(nfloat) : CTFont
ToCTFont(CGAffineTransform, nfloat) : CTFont

Protected Methods

Dispose(Boolean)
Releases the resources used by the CGFont object.