src/third_party/specimenTools/lib/widgets/GenericFontData.js
/**
     * GenericFontData looks at the "data-getter" attribute of the host
     * element and queries FontData for that getter description and the
     * current font. Then it sets hostElement.textContent to the result
     * of the query.
     *
     * The "data-getter" attribute value should be the name of a getter function
     * in FontData without the preceding `get` e.g. for `data-getter="NumberSupportedLanguages"`
     * `fontData.getNumberSupportedLanguages(currentFontIndex)` will be called.
     *
     * The result of the call to FontData.get{...} is not specially formatted.
     * arrays are joined with ", " but everything else will just be used
     * as it.
     *
     * The option `getValue` can be used to adhoc enhance the getter and
     * string formatting. If more is needed GenericFontData should be subclassed.
     *
     */
GenericFontData looks at the "data-getter" attribute of the host
element and queries FontData for that getter description and the
current font. Then it sets hostElement.textContent to the result
of the query.

The "data-getter" attribute value should be the name of a getter function
in FontData without the preceding `get` e.g.

The result of the call to FontData.get{...} is not specially formatted.
arrays are joined with ", " but everything else will just be used
as it.

The option `getValue` can be used to adhoc enhance the getter and
string formatting. If more is needed GenericFontData should be subclassed.
GenericFontData looks at the " data - getter " attribute of the host element and queries FontData for that getter description and the current font . Then it sets hostElement . textContent to the result of the query . The " data - getter " attribute value should be the name of a getter function in FontData without the preceding ` get ` e . g . The result of the call to FontData . get { ... } is not specially formatted . arrays are joined with " " but everything else will just be used as it . The option ` getValue ` can be used to adhoc enhance the getter and string formatting . If more is needed GenericFontData should be subclassed .
function GenericFontData(container, pubSub, fontData, options) {
        Parent.call(this, options);
        this._container = container;
        this._pubSub = pubSub;
        this._fontData = fontData;
        this._pubSub.subscribe('activateFont', this._onActivateFont.bind(this));
    }
function GenericFontData ( container , pubSub , fontData , options ) { Parent . call ( this , options ) ; this . _container = container ; this . _pubSub = pubSub ; this . _fontData = fontData ; this . _pubSub . subscribe ( 'activateFont' , this . _onActivateFont . bind ( this ) ) ; }
GenericFontData looks at the "data-getter" attribute of the host
 element and queries FontData for that getter description and the
 current font.
GenericFontData looks at the " data - getter " attribute of the host element and queries FontData for that getter description and the current font .