CanParse(ReadOnlySpan) Method

Definition

Assembly Broadside.dll

Tells, cheaply, whether the bytes are a program this parser reads, from their signature (such as 00 01 00 00, OTTO, %!).

public bool CanParse(ReadOnlySpan<byte> data)

Parameters

data
ReadOnlySpan<Byte>

The decoded font program.

Returns

Boolean
true when the parser recognizes the bytes.

Remarks

Accepts a program starting with %! (Type 1 Font Format §2.4) and a PFB file (0x80 0x01, TN 5040 §3.3).