CTFont 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.
Represents a CoreText Font.
public class CTFont : CoreFoundation.NativeObject
type CTFont = class
inherit NativeObject
- Inheritance
Remarks
CoreText does not synthesize font styles (italic and bold). This means that if you pick a font that has neither a Bolded or Italicized versions available, CoreText will not create a dynamic font that is merely a slanted version of the font for italic, or a boldened version from the original font. In those cases, if you want to synthesize the font, you could apply a Matrix transformation to slant the font (it will still be wrong, but will look slanted). For bolding, you could stroke the font twice, or manually extend the glyph path.
Constructors
Properties
| Name | Description |
|---|---|
| AscentMetric | |
| BoundingBox | |
| CapHeightMetric | |
| CharacterSet | |
| DescentMetric | |
| DisplayName | |
| FamilyName | |
| FullName | |
| GlyphCount | |
| Handle | (Inherited from DisposableObject) |
| LeadingMetric | |
| Matrix |
The transformation matrix used when this font was created. |
| Owns | (Inherited from DisposableObject) |
| PostScriptName | |
| Size |
The font size. |
| SlantAngle | |
| StringEncoding | |
| SymbolicTraits | |
| UnderlinePosition | |
| UnderlineThickness | |
| UnitsPerEmMetric | |
| XHeightMetric | |
Methods
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |