Thread View: adobe.scripting.indesign
6 messages
6 total messages
Started by Marco Lugli
Wed, 25 Mar 2009 07:56
Add Kerning after Dropcaps
Author: Marco Lugli
Date: Wed, 25 Mar 2009 07:56
Date: Wed, 25 Mar 2009 07:56
5 lines
869 bytes
869 bytes
Hello all, working with InDesign CS3, I have a document with a number of text frames and every text frame has got a paragraph inside itself. Every paragraph, starts with a one character long dropcap. My aim, would be to add the same metric kerning value after every dropcap instance in each text field. Any ideas? Thanks all Marco
Re: Add Kerning after Dropcaps
Author: Peter Kahrel
Date: Wed, 25 Mar 2009 11:24
Date: Wed, 25 Mar 2009 11:24
9 lines
941 bytes
941 bytes
Something like this sets the kerning between the first and second characters in every text frame in the active document to 20. myTextframes = app.activeDocument.textFrames.everyItem().getElements(); for (i = 0; i < myTextframes.length; i++) myTextframes[i].insertionPoints[1].kerningValue = 20; It doesn't check or catch any errors. Peter
Re: Add Kerning after Dropcaps
Author: Marco Lugli
Date: Wed, 25 Mar 2009 11:35
Date: Wed, 25 Mar 2009 11:35
4 lines
809 bytes
809 bytes
Hello Peter, is it possible to limit this action only to texts with a specific paragraph style applied? I ask you this couse I've also got a series of other text frames which doesn't require this modification. Thanks, Marco
Re: Add Kerning after Dropcaps
Author: Dave_Saunders
Date: Wed, 25 Mar 2009 11:47
Date: Wed, 25 Mar 2009 11:47
3 lines
788 bytes
788 bytes
Why not build the kerning into the drop-cap character style (you'd have to use tracking but when applied like this it has the same effect) called up by the paragraph style? Then you don't need a script. Dave
Re: Add Kerning after Dropcaps
Author: Peter Kahrel
Date: Wed, 25 Mar 2009 12:34
Date: Wed, 25 Mar 2009 12:34
10 lines
707 bytes
707 bytes
Why not build the kerning into the drop-cap character style ...
Of course...
Peter
Re: Add Kerning after Dropcaps
Author: Marco Lugli
Date: Wed, 25 Mar 2009 13:55
Date: Wed, 25 Mar 2009 13:55
3 lines
901 bytes
901 bytes
Thank you Dave and Peter, unfortunately, using tracking instead of kerning, I obtain an increasing of space on both sides of the drop-cap character, while I want it only on the right side - Anyhow, thanks for the suggestions. Marco
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads