AfmKerningPair Struct
A kerning pair of an AFM file (the KP, KPX, KPY and KPH keys): the vector by which the second character moves relative to the first one.
public readonly struct AfmKerningPair : IEquatable<AfmKerningPair>Remarks
KP, KPX and KPY name the characters, and KPH gives their codes. The other identifier of each character is filled from AfmFontMetrics.CharacterMetrics when the file has the character, and is null otherwise.
- Implements
Constructors
| Name | Description |
|---|---|
| AfmKerningPair(string?, string?, int?, int?, double, double) | A kerning pair of an AFM file (the KP, KPX, KPY and KPH keys): the vector by which the second character moves relative to the first one. |
AfmKerningPair(string?, string?, int?, int?, double, double)
A kerning pair of an AFM file (the KP, KPX, KPY and KPH keys): the vector by which the second character moves relative to the first one.
public AfmKerningPair(string? First, string? Second, int? FirstCode, int? SecondCode, double X, double Y)Parameters
Firststring?- The name of the first character.
Secondstring?- The name of the second character.
FirstCodeint?- The code of the first character.
SecondCodeint?- The code of the second character.
Xdouble- The x component of the kerning vector, in units of 1/1000 of the point size.
Ydouble- The y component of the kerning vector, in units of 1/1000 of the point size.
Remarks
KP, KPX and KPY name the characters, and KPH gives their codes. The other identifier of each character is filled from AfmFontMetrics.CharacterMetrics when the file has the character, and is null otherwise.
Properties
| Name | Description |
|---|---|
| First | The name of the first character. |
| FirstCode | The code of the first character. |
| Second | The name of the second character. |
| SecondCode | The code of the second character. |
| X | The x component of the kerning vector, in units of 1/1000 of the point size. |
| Y | The y component of the kerning vector, in units of 1/1000 of the point size. |
First
AfmKerningPair.csFirstCode
AfmKerningPair.csSecond
AfmKerningPair.csSecondCode
AfmKerningPair.csMethods
| Name | Description |
|---|---|
| Deconstruct(string?, string?, int?, int?, double, double) | |
| Equals(AfmKerningPair) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(string?, string?, int?, int?, double, double)
Equals overloads
Equals(AfmKerningPair)
public bool Equals(AfmKerningPair other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(AfmKerningPair, AfmKerningPair) | |
| operator !=(AfmKerningPair, AfmKerningPair) |
operator ==(AfmKerningPair, AfmKerningPair)
public static bool operator ==(AfmKerningPair left, AfmKerningPair right)No documentation is available.
operator !=(AfmKerningPair, AfmKerningPair)
public static bool operator !=(AfmKerningPair left, AfmKerningPair right)No documentation is available.