Former-commit-id: 662e11b0f7072ad5c37a871e180d890000da79d6
@@ -227,6 +227,8 @@ this.singlefile.lib.modules.fontsAltMinifier = this.singlefile.lib.modules.fonts
const otfFontFound = findSource("opentype") || findSource("embedded-opentype");
if (otfFontFound) {
fontInfo = filterSource(otfFontFound);
+ } else {
+ fontInfo = fontInfo.filter(source => !source.src.match(EMPTY_URL_SOURCE) && (source.valid) || source.src.startsWith(LOCAL_SOURCE));
}