TryResolveResource(FontResourceKind, String, out ReadOnlyMemory) Method

Definition

Namespace Broadside.Fonts
Assembly Broadside.dll

Finds a named resource: the bytes of a CMap file in the text syntax of Adobe Technical Note #5014.

bool TryResolveResource(FontResourceKind kind, string name, scoped out ReadOnlyMemory<byte> data)

Parameters

kind
FontResourceKind

The kind of resource.

name
String

Its name, as FontResourceKind describes for each kind.

data
ReadOnlyMemory<Byte>

The file's bytes; they must not change afterwards.

Returns

Boolean
true when this resolver has the resource.