CGFont Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Font support.
public class CGFont : CoreFoundation.NativeObject
type CGFont = class
inherit NativeObject
- Inheritance
Properties
| Name | Description |
|---|---|
| Ascent |
Returns the ascent of the font. |
| CapHeight |
Returns the cap height of the font. |
| Descent |
Returns the descent of the font. |
| FontBBox |
Returns a rectangle specifing the bounding box of the font. |
| FullName |
Returns the full name of the font. |
| Handle | (Inherited from DisposableObject) |
| ItalicAngle | |
| Leading | |
| NumberOfGlyphs | |
| Owns | (Inherited from DisposableObject) |
| PostScriptName | |
| StemV | |
| UnitsPerEm | |
| XHeight | |
Methods
| Name | Description |
|---|---|
| ClearHandle() | (Inherited from DisposableObject) |
| CreateFromProvider(CGDataProvider) |
Creates a font from a data provider. |
| CreateWithFontName(String) |
Creates a new CGFont representing the specified PostScript or full name. |
| Dispose() | (Inherited from DisposableObject) |
| Dispose(Boolean) | (Inherited from NativeObject) |
| Equals(Object) | (Inherited from DisposableObject) |
| GetCheckedHandle() | (Inherited from DisposableObject) |
| GetGlyphWithGlyphName(String) |
Returns the glyph for the specified glyph name. |
| GetHashCode() | (Inherited from DisposableObject) |
| GetTypeID() |
Type identifier for the CoreGraphics.CGFont type. |
| GlyphNameForGlyph(UInt16) | |
| InitializeHandle(NativeHandle) | (Inherited from DisposableObject) |
| Release() | |
| Retain() | |
| ToCTFont(NFloat, CGAffineTransform) | |
| ToCTFont(NFloat) | |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |