CharacterCode(UInt32, Int32, Boolean) Constructor

Definition

Namespace Broadside.Fonts
Assembly Broadside.dll

One character code read from a string shown in a composite font: its value, its length in bytes, and whether it is valid.

public CharacterCode(uint Value, int Length, bool IsValid)

Parameters

Value
UInt32

The code's bytes as a big-endian number, such as 0x8140 for the bytes 81 40.

Length
Int32

How many bytes of the string the code takes, 1 to 4; 0 only for an empty string.

IsValid
Boolean

Whether the code lies in one of the CMap's codespace ranges. An invalid code selects CID 0, and its length is that of the codespace range that best matches its first bytes.

Remarks

ISO 32000-2 §9.7.6.2 and §9.7.6.3; Adobe TN 5014 §5.2 (codespace ranges).