Struct DWriteFontFeature
The DWRITE_FONT_FEATURE structure specifies properties used to identify and execute typographic feature in the font.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteFontFeature : IEquatable<DWriteFontFeature>
Constructors
| Edit this page View SourceDWriteFontFeature(DWriteFontFeatureTag, uint)
Initializes a new instance of the DWriteFontFeature struct.
Declaration
public DWriteFontFeature(DWriteFontFeatureTag nameTag, uint parameter)
Parameters
Type | Name | Description |
---|---|---|
DWriteFontFeatureTag | nameTag | The feature OpenType name identifier. |
uint | parameter | Execution parameter of the feature. |
Properties
| Edit this page View SourceNameTag
Gets or sets the feature OpenType name identifier.
Declaration
public DWriteFontFeatureTag NameTag { get; set; }
Property Value
Type | Description |
---|---|
DWriteFontFeatureTag |
Parameter
Gets or sets the execution parameter of the feature.
Declaration
public uint Parameter { get; set; }
Property Value
Type | Description |
---|---|
uint |
Remarks
The parameter should be non-zero to enable the feature. Once enabled, a feature can't be disabled again within the same range. Features requiring a selector use this value to indicate the selector index.
Methods
| Edit this page View SourceEquals(DWriteFontFeature)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteFontFeature other)
Parameters
Type | Name | Description |
---|---|---|
DWriteFontFeature | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DWriteFontFeature, DWriteFontFeature)
Compares two DWriteFontFeature objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteFontFeature left, DWriteFontFeature right)
Parameters
Type | Name | Description |
---|---|---|
DWriteFontFeature | left | The left DWriteFontFeature to compare. |
DWriteFontFeature | right | The right DWriteFontFeature to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteFontFeature, DWriteFontFeature)
Compares two DWriteFontFeature objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteFontFeature left, DWriteFontFeature right)
Parameters
Type | Name | Description |
---|---|---|
DWriteFontFeature | left | The left DWriteFontFeature to compare. |
DWriteFontFeature | right | The right DWriteFontFeature to compare. |
Returns
Type | Description |
---|---|
bool |