src/third_party/specimenTools/lib/widgets/GlyphTables.js
/**
     * GlyphTables manages the rendering of the GlyphTable for the current
     * font.
     *
     * The main task is switching to the GlyphTable for the active font.
     *
     * Another task is to determine a common glyph element size for all
     * fonts/GlyphTable-children:
     * When rendering a font, the size of the glyphs svg element is
     * determined by GlyphTable. But, when multiple fonts are displayed
     * this is resulting in different glyph element sizes. Thus, when all
     * fonts are available (see `_p._onAllFontsLoaded`) GlyphTable will
     * use the `setDimensions` method of its children to set a common glyph
     * element size.
     *
     * Options:
     *
     * `glyphTable`: Object, configuration passed to the children
     * `GlyphTable` constructor.
     */
GlyphTables manages the rendering of the GlyphTable for the current
font.

The main task is switching to the GlyphTable for the active font.

Another task is to determine a common glyph element size for all
fonts/GlyphTable-children:
When rendering a font, the size of the glyphs svg element is
determined by GlyphTable. But, when multiple fonts are displayed
this is resulting in different glyph element sizes. Thus, when all
fonts are available  GlyphTable will
use the `setDimensions` method of its children to set a common glyph
element size.



`glyphTable`: Object, configuration passed to the children
`GlyphTable` constructor.
GlyphTables manages the rendering of the GlyphTable for the current font . The main task is switching to the GlyphTable for the active font . Another task is to determine a common glyph element size for all fonts / GlyphTable - children : When rendering a font the size of the glyphs svg element is determined by GlyphTable . But when multiple fonts are displayed this is resulting in different glyph element sizes . Thus when all fonts are available GlyphTable will use the ` setDimensions ` method of its children to set a common glyph element size . ` glyphTable ` : Object configuration passed to the children ` GlyphTable ` constructor .
function GlyphTables(container, pubsub, options) {
        Parent.call(this, options);
        this._container = container;
        this._pubSub = pubsub;
        this._activeTable  = null;
        this._options = this._makeOptions(options);
        this._tables = [];
        this._tablesContainer = this._container.ownerDocument.createElement('div');
        this._container.appendChild(this._tablesContainer);
        this._pubSub.subscribe('loadFont', this._onLoadFont.bind(this));
        this._pubSub.subscribe('activateFont', this._onActivateFont.bind(this));
        this._pubSub.subscribe('allFontsLoaded', this._onAllFontsLoaded.bind(this));
    }
function GlyphTables ( container , pubsub , options ) { Parent . call ( this , options ) ; this . _container = container ; this . _pubSub = pubsub ; this . _activeTable = null ; this . _options = this . _makeOptions ( options ) ; this . _tables = [ ] ; this . _tablesContainer = this . _container . ownerDocument . createElement ( 'div' ) ; this . _container . appendChild ( this . _tablesContainer ) ; this . _pubSub . subscribe ( 'loadFont' , this . _onLoadFont . bind ( this ) ) ; this . _pubSub . subscribe ( 'activateFont' , this . _onActivateFont . bind ( this ) ) ; this . _pubSub . subscribe ( 'allFontsLoaded' , this . _onAllFontsLoaded . bind ( this ) ) ; }
GlyphTables manages the rendering of the GlyphTable for the current
 font.
GlyphTables manages the rendering of the GlyphTable for the current font .