Finding Unassigned Glyphs
If we import or enter a text code (e.g. a Katakana character ) for which a font has no Glyph, then Indesign will display an x'd rectangle.
Is it possible to find/scan for these with a script?
Thanks !
If we import or enter a text code (e.g. a Katakana character ) for which a font has no Glyph, then Indesign will display an x'd rectangle.
Is it possible to find/scan for these with a script?
Thanks !
I did finally manage to script a list of all the unassinged glyphs in my document - with .findGlyph().
This sample just writes to the extendscript toolkit js console.
[CS6]
-------------------------------------------------------------------------------
var myDocument=app.activeDocument;
var allFound = [];
var numFonts = myDocument.fonts.length;
for (var z=0;z<numFonts;z++) {
allFound = [];
app.findGlyphPreferences = NothingEnum.nothing;
app.findGlyphPreferences = NothingEnum.nothing;
app.findGlyphPreferences.glyphID = 0;
app.findGlyphPreferences.appliedFont = myDocument.fonts
allFound = app.findGlyph ();
if (allFound.length>0) {
$.writeln(allFound.length+ ' Unassigned Glyphs in ' + myDocument.fonts
for (var y=0;y<allFound.length;y++) {
$.writeln( allFound
}
}
}
$.writeln('--done--');
-------------------------------------------------------------------------------
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.