textFonts not refreshed after add/remove fonts. textFonts.getByName(fontName) doesn't throw error if font is not installed on user system.
textFonts not refreshed after add/remove fonts. textFonts.getByName(fontName) doesn't throw error if font is not installed on user system.
Code:
for (var i = 0; i < usedFonts.length; i++) {
try {
var textFont= app.textFonts.getByName(usedFonts[i]);
} catch (error) {
missingFonts.push(usedFonts[i]);
}
}
1
vote
shafali
shared this idea