Class Typography
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
[Guid("55f1112b-1dc2-4b3c-9541-f46894ed85b6")]
public class Typography : ComObject
- Inheritance
-
Typography
Constructors
Typography(Factory)
Creates a typography object for use in a text layout.
public Typography(Factory factory)
Parameters
Typography(nint)
public Typography(nint nativePtr)
Parameters
nativePtr
nint
Properties
FontFeatureCount
Gets the number of OpenType font features for the current font.
public int FontFeatureCount { get; }
Property Value
Remarks
A single run of text can be associated with more than one typographic feature. The Typography object holds a list of these font features.
Methods
AddFontFeature(FontFeature)
Adds an OpenType font feature.
public void AddFontFeature(FontFeature fontFeature)
Parameters
fontFeature
FontFeatureA structure that contains the OpenType name identifier and the execution parameter for the font feature being added.
GetFontFeature(int)
Gets the font feature at the specified index.
public FontFeature GetFontFeature(int fontFeatureIndex)
Parameters
fontFeatureIndex
intThe zero-based index of the font feature to retrieve.
Returns
- FontFeature
When this method returns, contains the font feature which is at the specified index.
Remarks
A single run of text can be associated with more than one typographic feature. The Typography object holds a list of these font features.
Operators
explicit operator Typography(nint)
public static explicit operator Typography(nint nativePtr)
Parameters
nativePtr
nint