@equinor/videx-3d
    Preparing search index...

    Function GlyphsProvider

    • Provides sub components with a GlyphsContext, which contains data and utilities needed to add text support to fragment shaders. This includes a reference to a glyph atlas texture and a supporting uniforms group, which will contain glyph config and metrics.

      It currently relies on a pre-generated font atlas and json config file using msdf-bmfont-xml

      Parameters

      Returns Element

      <GlyphsProvider fontAtlasUrl="OpenSans-Regular.png" fontConfigUrl="OpenSans-Regular.json">
      { ... }
      </GlyphsProvider>

      This component should be considered experimental.