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