weasel API - v0.8.0
    Preparing search index...

    Function isCanvasFont

    • Will family be served by the dynamic canvas-SDF tier right now?

      Service, not membership — the answer depends on the fallback policy in force and can change without any enrollment call:

      • explicitly enrolled via registerCanvasFonttrue under every policy; a consumer naming a family outranks the policy.
      • auto-enrolled by the 'canvas' policy → true only while that policy is still in force. The enrollment lapses rather than being discarded, so returning to 'canvas' makes it true again.
      • never enrolled → false, including under 'canvas' (that policy enrolls lazily, on the first miss).

      The membership reading would answer true for an auto-enrolled family under 'substitute' / 'none', where nothing routes to this tier — a caller predicting what renders would be told the opposite of the truth. Mirrors listFonts, which reports the baked registry alone for the same reason: "enrolled" is not "will render".

      Parameters

      • family: string

      Returns boolean