Renderer CSS
Generate stylesheet and font-face declarations for the HTML renderer.
Functions
getRendererFontFaceCSS
getRendererFontFaceCSS(): string
Return `@font-face` declarations for the grigson bundled fonts. Inject these into the main document (not a shadow root) so that browsers reliably load unicode-range sub-faces.
getRendererStyles
getRendererStyles(typeface: string): string
Return the CSS stylesheet required to render HTML output from `HtmlRenderer`. Pass a typeface name to select a bundled font; defaults to `'sans'`.