Table of Contents

Method IsFontToken

Namespace
Velvet
Assembly
Velvet.Docs.dll

IsFontToken(string)

Whether cls can change what TryExtract(string[], out FontIntent) builds. Both readers ask it as a cheap over-approximation and pay only a wasted resolve for a false positive — the presence gate below decides whether to run the resolver at all, and StyleVariantPayload.IsVariantGateToken decides whether to track a payload for it. Reading the font- prefix rather than the parse is what keeps it on the cheap side of that trade: a suffix TryExtract(string[], out FontIntent) goes on to reject still enters, where a spelling this failed to recognise would cost the payload its effect.

public static bool IsFontToken(string cls)

Parameters

cls string

Returns

bool