function extractFontFamilies(text, fontFamily) {
  const regex = /font-family:([^;"\s]+)/g;
  const matches = text.match(regex);
  const fontFamilies = [fontFamily];
  const dedupe = {};
  dedupe[fontFamily] = true;
  if (matches) {
    matches.forEach((match) => {
      const fontFamily2 = match.split(":")[1].trim();
      if (!dedupe[fontFamily2]) {
        fontFamilies.push(fontFamily2);
        dedupe[fontFamily2] = true;
      }
    });
  }
  return fontFamilies;
}

export { extractFontFamilies };
//# sourceMappingURL=extractFontFamilies.mjs.map
