Functions & Hooks
useFontsState
function useFontsState(families: Record<string, FontSource[]>): FontsState;Register fonts for the lifetime of a component, with their ready and error
state. Use this over useFonts when a failed load needs to be visible rather
than gating the text off forever.
Faces are not unregistered on unmount: they are process-wide, cheap to keep, and another canvas may still be drawing with them.
Parameters
families
Record<string, FontSource[]>