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

NameDescription
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

First string?
The name of the first character.
Second string?
The name of the second character.
FirstCode int?
The code of the first character.
SecondCode int?
The code of the second character.
X double
The x component of the kerning vector, in units of 1/1000 of the point size.
Y double
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

NameDescription
FirstThe name of the first character.
FirstCodeThe code of the first character.
SecondThe name of the second character.
SecondCodeThe code of the second character.
XThe x component of the kerning vector, in units of 1/1000 of the point size.
YThe y component of the kerning vector, in units of 1/1000 of the point size.

The name of the first character.

public string? First { get; init; }

Property value

string?

The code of the first character.

public int? FirstCode { get; init; }

Property value

int?

The name of the second character.

public string? Second { get; init; }

Property value

string?

The code of the second character.

public int? SecondCode { get; init; }

Property value

int?

The x component of the kerning vector, in units of 1/1000 of the point size.

public double X { get; init; }

Property value

double

The y component of the kerning vector, in units of 1/1000 of the point size.

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(string?, string?, int?, int?, double, double)
Equals(AfmKerningPair)
Equals(object)
GetHashCode()
ToString()

Deconstruct(string?, string?, int?, int?, double, double)

public void Deconstruct(out string? First, out string? Second, out int? FirstCode, out int? SecondCode, out double X, out double Y)

Parameters

First string?
Second string?
FirstCode int?
SecondCode int?
X double
Y double

No documentation is available.

Equals overloads

Equals(AfmKerningPair)

public bool Equals(AfmKerningPair other)
Parameters
other AfmKerningPair
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(AfmKerningPair, AfmKerningPair)
operator !=(AfmKerningPair, AfmKerningPair)

operator ==(AfmKerningPair, AfmKerningPair)

public static bool operator ==(AfmKerningPair left, AfmKerningPair right)

Parameters

left AfmKerningPair
right AfmKerningPair

Returns

bool

No documentation is available.

operator !=(AfmKerningPair, AfmKerningPair)

public static bool operator !=(AfmKerningPair left, AfmKerningPair right)

Parameters

left AfmKerningPair
right AfmKerningPair

Returns

bool

No documentation is available.