AfmBox Struct

A bounding box of an AFM file, in units of 1/1000 of the point size, with the y axis up.

public readonly struct AfmBox : IEquatable<AfmBox>

Remarks

The numbers can be reals, unlike the font units of GlyphBox.

Implements

Constructors

NameDescription
AfmBox(double, double, double, double)A bounding box of an AFM file, in units of 1/1000 of the point size, with the y axis up.

AfmBox(double, double, double, double)

A bounding box of an AFM file, in units of 1/1000 of the point size, with the y axis up.

public AfmBox(double Left, double Bottom, double Right, double Top)

Parameters

Left double
The x coordinate of the lower left corner (llx).
Bottom double
The y coordinate of the lower left corner (lly).
Right double
The x coordinate of the upper right corner (urx).
Top double
The y coordinate of the upper right corner (ury).

Remarks

The numbers can be reals, unlike the font units of GlyphBox.

Properties

NameDescription
BottomThe y coordinate of the lower left corner (lly).
LeftThe x coordinate of the lower left corner (llx).
RightThe x coordinate of the upper right corner (urx).
TopThe y coordinate of the upper right corner (ury).

Bottom

AfmBox.cs

The y coordinate of the lower left corner (lly).

public double Bottom { get; init; }

Property value

double

The x coordinate of the lower left corner (llx).

public double Left { get; init; }

Property value

double

The y coordinate of the upper right corner (ury).

public double Top { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, double, double, double)
Equals(AfmBox)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, double, double, double)

public void Deconstruct(out double Left, out double Bottom, out double Right, out double Top)

Parameters

Left double
Bottom double
Right double
Top double

No documentation is available.

Equals overloads

Equals(AfmBox)

public bool Equals(AfmBox other)
Parameters
other AfmBox
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 ==(AfmBox, AfmBox)
operator !=(AfmBox, AfmBox)

operator ==(AfmBox, AfmBox)

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

Parameters

left AfmBox
right AfmBox

Returns

bool

No documentation is available.

operator !=(AfmBox, AfmBox)

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

Parameters

left AfmBox
right AfmBox

Returns

bool

No documentation is available.