CidGlyph(CharacterCode, Int32, Int32, Double, CidVerticalMetrics) Constructor

Definition

Namespace Broadside.Fonts
Assembly Broadside.dll

One glyph of a string shown in a composite font: the code read, the CID it selects, the glyph id and the glyph's metrics.

public CidGlyph(CharacterCode Code, int Cid, int GlyphId, double Width, CidVerticalMetrics VerticalMetrics)

Parameters

Code
CharacterCode

The character code and how many bytes of the string it takes.

Cid
Int32

The CID the code maps to (§9.7.6.2), which gives the metrics even when its glyph is missing; 0 for an invalid or unmapped code.

GlyphId
Int32

The glyph id in the CIDFont's program: the CID's glyph, else the glyph of the code's notdef mapping, else the glyph of CID 0 (§9.7.6.3).

Width
Double

The horizontal displacement w0 of the CID, in glyph space units (thousandths of text space; §9.7.4.3).

VerticalMetrics
CidVerticalMetrics

The vertical displacement and position vector of the CID (§9.7.4.3), used in vertical writing.

Remarks

ISO 32000-2 §9.7.6.2, §9.7.6.3 and §9.7.4.3; see ReadGlyph(ReadOnlySpan<Byte>).