AfmTrackKerning Struct

A track of an AFM file (the TrackKern key): a degree of tightness, and the change of the space between characters as a linear function of the point size (Adobe Technical Note #5004, section 9.1).

public readonly struct AfmTrackKerning : IEquatable<AfmTrackKerning>

Remarks

Unlike the other metrics of the file, the kerning amounts of a track are in points.

Implements

Constructors

NameDescription
AfmTrackKerning(int, double, double, double, double)A track of an AFM file (the TrackKern key): a degree of tightness, and the change of the space between characters as a linear function of the point size (Adobe Technical Note #5004, section 9.1).

AfmTrackKerning(int, double, double, double, double)

A track of an AFM file (the TrackKern key): a degree of tightness, and the change of the space between characters as a linear function of the point size (Adobe Technical Note #5004, section 9.1).

public AfmTrackKerning(int Degree, double MinPointSize, double MinKern, double MaxPointSize, double MaxKern)

Parameters

Degree int
The degree of tightness: negative values are tighter, positive values looser.
MinPointSize double
The point size below which the kerning is MinKern.
MinKern double
The kerning, in points, at MinPointSize.
MaxPointSize double
The point size above which the kerning is MaxKern.
MaxKern double
The kerning, in points, at MaxPointSize.

Remarks

Unlike the other metrics of the file, the kerning amounts of a track are in points.

Properties

NameDescription
DegreeThe degree of tightness: negative values are tighter, positive values looser.
MaxKernThe kerning, in points, at MaxPointSize.
MaxPointSizeThe point size above which the kerning is MaxKern.
MinKernThe kerning, in points, at MinPointSize.
MinPointSizeThe point size below which the kerning is MinKern.

The degree of tightness: negative values are tighter, positive values looser.

public int Degree { get; init; }

Property value

int

The kerning, in points, at MaxPointSize.

public double MaxKern { get; init; }

Property value

double

MaxPointSize

AfmTrackKerning.cs

The point size above which the kerning is MaxKern.

public double MaxPointSize { get; init; }

Property value

double

The kerning, in points, at MinPointSize.

public double MinKern { get; init; }

Property value

double

MinPointSize

AfmTrackKerning.cs

The point size below which the kerning is MinKern.

public double MinPointSize { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(int, double, double, double, double)
Equals(AfmTrackKerning)
Equals(object)
GetHashCode()
GetKerning(double)Gets the kerning of the track at a point size.
ToString()

Deconstruct(int, double, double, double, double)

public void Deconstruct(out int Degree, out double MinPointSize, out double MinKern, out double MaxPointSize, out double MaxKern)

Parameters

Degree int
MinPointSize double
MinKern double
MaxPointSize double
MaxKern double

No documentation is available.

Equals overloads

Equals(AfmTrackKerning)

public bool Equals(AfmTrackKerning other)
Parameters
other AfmTrackKerning
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.

GetKerning(double)

AfmTrackKerning.cs

Gets the kerning of the track at a point size.

public double GetKerning(double pointSize)

Parameters

pointSize double
The point size of the font.

Returns

double The amount, in points, to add to the space between characters: negative values bring them closer.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(AfmTrackKerning, AfmTrackKerning)
operator !=(AfmTrackKerning, AfmTrackKerning)

operator ==(AfmTrackKerning, AfmTrackKerning)

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

Parameters

left AfmTrackKerning
right AfmTrackKerning

Returns

bool

No documentation is available.

operator !=(AfmTrackKerning, AfmTrackKerning)

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

Parameters

left AfmTrackKerning
right AfmTrackKerning

Returns

bool

No documentation is available.