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 : IDisposable, ObjCRuntime.INativeObject
type CTFont = class
interface INativeObject
interface IDisposable
- Inheritance
-
CTFont
- Implements
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
AscentMetric | |
BoundingBox | |
CapHeightMetric | |
CharacterSet | |
DescentMetric | |
DisplayName | |
FamilyName | |
FullName | |
GlyphCount | |
Handle |
Handle (pointer) to the unmanaged object representation. |
LeadingMetric | |
Matrix |
The transformation matrix used when this font was created. |
PostScriptName | |
Size |
The font size. |
SlantAngle | |
StringEncoding | |
SymbolicTraits | |
UnderlinePosition | |
UnderlineThickness | |
UnitsPerEmMetric | |
XHeightMetric |