API

Function loadFontWeightOffset

  • Load the synthetic font-weight setter without dynamically importing the package barrel.

    The exact internal import keeps the opt-in shader feature isolated in its lazy chunk while the package continues to expose a single root entry point.

    Returns Promise<(data: TextData, run: number | GlyphRun, offset: number) => void>