FontSourceRef.match

Result!(FontMatch, TextError) match(in FontDescription desc) @safe nothrow;

The best face for a description.

Parameters

descfamilies in preference order, weight, slant, width, language.

Returns

The match (portable bytes or path, face index, resolved

description, identity), or NO_MATCH when nothing matches at all; IO/PROVIDER_ERROR/ALLOCATION_FAILED for backend failures.