Class DWriteTypography
Font typography setting.
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public sealed class DWriteTypography : IDisposable, IDWriteReleasable
  Properties
| Edit this page View SourceHandle
Gets an handle representing the DWrite object interface.
Declaration
public object Handle { get; }
  Property Value
| Type | Description | 
|---|---|
| object | 
Methods
| Edit this page View SourceAddFontFeature(DWriteFontFeature)
Add font feature.
Declaration
public void AddFontFeature(DWriteFontFeature fontFeature)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DWriteFontFeature | fontFeature | The font feature to add.  | 
      
Dispose()
Immediately releases the unmanaged resources used by the DWrite object.
Declaration
public void Dispose()
  GetFontFeature(uint)
Get the font feature at the specified index.
Declaration
public DWriteFontFeature GetFontFeature(uint fontFeatureIndex)
  Parameters
| Type | Name | Description | 
|---|---|---|
| uint | fontFeatureIndex | The zero-based index of the font feature to get.  | 
      
Returns
| Type | Description | 
|---|---|
| DWriteFontFeature | 
GetFontFeatureCount()
Get the number of font features.
Declaration
public uint GetFontFeatureCount()
  Returns
| Type | Description | 
|---|---|
| uint | 
Release()
Releases the managed reference to the COM DWrite interface.
Declaration
public void Release()
  ToBoolean()
Gets a boolean indicating if the handle is not null.
Declaration
public bool ToBoolean()
  Returns
| Type | Description | 
|---|---|
| bool | A boolean  | 
      
Operators
| Edit this page View Sourceimplicit operator bool(DWriteTypography?)
Gets a boolean indicating if the handle is not null.
Declaration
public static implicit operator bool(DWriteTypography? value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DWriteTypography | value | A DWrite object.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | A boolean  |