MCP Apps Kit - v0.5.0
    Preparing search index...

    Function applyHostFonts

    • Apply host-provided font CSS

      Injects or updates a style element with font-related CSS. The style element is identified by a specific ID so it can be updated.

      Parameters

      • css: string

        CSS string containing

      Returns void

      rules or other font styles

      applyHostFonts(`
      @font-face {
      font-family: 'CustomFont';
      src: url('...') format('woff2');
      }
      body {
      font-family: 'CustomFont', sans-serif;
      }
      `);