shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$text_html$utils$getFontCss = function(global, require, module, exports) {
  var Cache = require("module$node_modules$pixi_DOT_js$lib$assets$cache$Cache"), loadFontCSS = require("module$node_modules$pixi_DOT_js$lib$scene$text_html$utils$loadFontCSS");
  "use strict";
  const FontStylePromiseCache = new Map();
  exports.FontStylePromiseCache = FontStylePromiseCache;
  exports.getFontCss = async function(fontFamilies) {
    fontFamilies = fontFamilies.filter(fontFamily => Cache.Cache.has(`${fontFamily}-and-url`)).map(fontFamily => {
      if (!FontStylePromiseCache.has(fontFamily)) {
        const {entries} = Cache.Cache.get(`${fontFamily}-and-url`), promises = [];
        entries.forEach(entry => {
          const url = entry.url;
          entry = entry.faces.map(face => ({weight:face.weight, style:face.style}));
          promises.push(...entry.map(style => loadFontCSS.loadFontCSS({fontWeight:style.weight, fontStyle:style.style, fontFamily}, url)));
        });
        FontStylePromiseCache.set(fontFamily, Promise.all(promises).then(css => css.join("\n")));
      }
      return FontStylePromiseCache.get(fontFamily);
    });
    return (await Promise.all(fontFamilies)).join("\n");
  };
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$text_html$utils$getFontCss.js.map
