Skip to content

Instantly share code, notes, and snippets.

@UskeS
Created August 17, 2018 07:51
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/a5259f9dd25f022b25a976c82eaf844b to your computer and use it in GitHub Desktop.
Save UskeS/a5259f9dd25f022b25a976c82eaf844b to your computer and use it in GitHub Desktop.
[InDesign] すべての合成フォントに同じ特例文字セットを追加する
//セット名が重複しても上書きされずにそのまま追加されます
var costomCharSet = {
name: "セット名", //特例文字セット名
customCharacters: "%◯&", //追加する文字
appliedFont: "A-OTF 見出ゴMB31 Pr6", //フォント
fontStyle: "MB31" //スタイル・ウェイト
};
!function() {
var doc = app.activeDocument;
var compFonts = doc.compositeFonts;
for (var i=1; i<compFonts.length; i++) { //i=0は変更不可のため1から
compFonts[i].compositeFontEntries.add(costomCharSet);
}
}(costomCharSet);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment