@mathjax/src
    Preparing search index...

    Class FontCache<N, T, D>

    Type Parameters

    • N

      The HTMLElement node class

    • T

      The Text node class

    • D

      The Document class

    Index

    Constructors

    Properties

    cache: Map<string, string> = ...

    The cache of font character IDs to their paths

    defs: N = null

    The SVG element for storing the cache

    jax: SVG<N, T, D>

    The SVG jax that owns this cache

    localID: string = ''

    A string to use to make per-equation cache IDs unique

    nextID: number = 0

    A number used to make localID values to use for each equation

    Methods

    • Cache a character from a particular variant and return the cache ID

      Parameters

      • variant: string

        The variant name for the character

      • C: string

        The character to be cached

      • path: string

        The SVG path data for the character

      Returns string

      The id for the cached element

    • Use a localID (for font-specific caching), either with a specific string, or from the nextID number.

      Parameters

      • id: string = null

        The prefix for the id

      Returns void