I need to get a hold of an insertion point between 2 characters and add some negative kerning to the characters either side.
I have tried:
myInsertion = myPara.characters[-3].insertionPoints;
and many variations of that line, but with no joy.
Can someone please help me out here?
myInsertion = myPara.insertionPoints[-3];
This will set the kerning on each side of that character to a specific value:
myPara.characters[-3].insertionPoints.everyItem().kerningValue = -25;
If you want to use different values, then:
myPara.characters[-3].insertionPoints.kerningValue = leftKern;
myPara.characters[-3].insertionPoints.kerningValue = rightKern;
where leftKern and rightKern hold the values you want.
Cheers Dave, once again a top and fast answer.
Works a treat!