Created
August 17, 2018 07:51
-
-
Save UskeS/a5259f9dd25f022b25a976c82eaf844b to your computer and use it in GitHub Desktop.
[InDesign] すべての合成フォントに同じ特例文字セットを追加する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//セット名が重複しても上書きされずにそのまま追加されます | |
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