AfmCharacterMetrics Class

The metrics of one character of an AFM file: a line of its StartCharMetrics section (Adobe Technical Note #5004, section 8).

public sealed class AfmCharacterMetrics

Properties

NameDescription
BoundingBoxGets the bounding box of the character (B): all zeros for a character that makes no marks.
CodeGets the code of the character in the default encoding of the font (C or CH), or −1 when the character is not encoded. In a CID-keyed font, it is the CID.
LigaturesGets the ligatures that start with the character (L), in the order of the file.
NameGets the PostScript name of the character (N).
VVectorGets the vector from the origin of writing direction 0 to the origin of writing direction 1 (VV).
VerticalWidthGets the width vector of the character for writing direction 1 (W1X, W1Y and W1).
WidthGets the width vector of the character for writing direction 0 (WX, WY, W and their W0 forms).

Gets the bounding box of the character (B): all zeros for a character that makes no marks.

public AfmBox? BoundingBox { get; }

Property value

AfmBox?

Gets the code of the character in the default encoding of the font (C or CH), or −1 when the character is not encoded. In a CID-keyed font, it is the CID.

public int Code { get; }

Property value

int

Gets the ligatures that start with the character (L), in the order of the file.

public IReadOnlyList<AfmLigature> Ligatures { get; }

Gets the PostScript name of the character (N).

public string? Name { get; }

Property value

string?

Gets the vector from the origin of writing direction 0 to the origin of writing direction 1 (VV).

public AfmVector? VVector { get; }

Property value

AfmVector?

Gets the width vector of the character for writing direction 1 (W1X, W1Y and W1).

public AfmVector? VerticalWidth { get; }

Property value

AfmVector?

Gets the width vector of the character for writing direction 0 (WX, WY, W and their W0 forms).

public AfmVector? Width { get; }

Property value

AfmVector?

Remarks

When the file gives no width for the character, the AfmWritingDirection.CharWidth of the direction applies: see AfmFontMetrics.GetWidth.