Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[InDesign] 重複して末尾が -\d な名前の合成フォントをまとめて削除
!function() {
var doc = app.activeDocument;
var compFonts = doc.compositeFonts;
for (var i=compFonts.length-1; i>0; i--) {
if (/\-\d+$/.test(compFonts[i].name)) {
compFonts[i].remove();
}
}
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment