Skip to content

Instantly share code, notes, and snippets.

@UskeS
Created August 17, 2018 12:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UskeS/b78eeb1ec44d62784ebcd8347b2be43a to your computer and use it in GitHub Desktop.
Save UskeS/b78eeb1ec44d62784ebcd8347b2be43a to your computer and use it in GitHub Desktop.
[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