setFont(font, setFontFunc) {
    if (FS.isFont(font)) {
      const fontFamily = 'f' + Utils.toHash(font);
      if (!Utils.storage[fontFamily]) {
        registerFont(font, { family: fontFamily });
        Utils.storage[fontFamily] = true;
      }

      setFontFunc(fontFamily);
    } else {
      setFontFunc(font);
    }
  }
Set fonts and register new font files
@param {string} font - text font file path
@param {function} setFontFunc - Callback hook for element setting font
@public