1 person found this helpful
I'm pretty sure the most correct approach would be to open the font in a fonteditor and generate some new metrics for the font.
If you want a script to do this, please start by letting ppl know what version of Indesign and OS you are running.
Ah yes, that might help
We are on OS 10.5.6, running CS3
We are trying to avoid purchasing a font editing program if possible (these are tough times)
1 person found this helpful
I would post in Indesign, or another relevant forum, if someone could help you generate a new metrix file (.afm) for you.
If it should set these values by scripting, when the user selects the specific font:
Where would you change the values?
What if the user chooses the font by a Char- / Para style?
Thomas B. Nielsen
As the others mention, this is not really a very good idea. This script
app.findTextPreferences = null;
app.findTextPreferences.appliedFont = "Times New Roman\tItalic";
foundItems = app.activeDocument.findText();
for (i=0; i<foundItems.length; i++)
foundItems[i].minimumWordSpacing = 100;
foundItems[i].desiredWordSpacing = 120;
foundItems[i].maximumWordSpacing = 150;
does what you ask, and a bit more: Word spacing is a paragraph attribute, so it changes the entire paragraph where this particular font is used, and leaves the others unchanged.
If word spacing is the only problem (a.k.a. the size of just the space characters), you could try to search and replace only the spaces in that font with another font, or -- to totally control its width -- a character style where you fiddled the horizonal scale to fit.
I have FontLab and can do it tomorrow at work. But I'm not sure if it's legal to change this font.
wow, thanks so much!
I can't seem to get that script to run, but I am saving it as an apple script, do i need to save it differently?
sorry, realized it is a java, I need some more caffiene (no pun intended).
I think we will need to bite the bullit and edit the typeface, but there are many many weights, and frankly i don't think someone should have to do all that for free.
Thanks for the script, it functions quite nicely. Is there any way to add a function to it that would also take any instances of the font above say 24pt and decrease the tracking by 10?
Thanks either way!
That's something entirely different.
By the way, did you read my comment that it changes the entire paragraph? The spacing is changed for just the paragraphs containing your font, and the others are left as they were.
Yes, its great!
It works quite well, as everyone can just run the script now that its set to find just the font we want, and the spacing is exactly as we want it.
Really appreciated and kept our non profit (read no budget) office on track.
I need to change the Justification Word Spacing through script, I used as shown below script runs but the value does not changed.
var PStyles = myDocument.allParagraphStyles;
for (i=1; i<PStyles.length; i++)
Is there any other method? Can you suggest me on this.
In short; justification is a parameter of paragraphStyles, but it only describes the entire paragraph alignment (left, justified, right, etc.). It has no "sub-parameters" for the individual justification settings. You should rather address the proper parameters directly:
(I see I did so in my original script).