Copy link to clipboard
Copied
HI All
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?
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[0].kerningValue = leftKern;
myPara.characters[-3].insertionPoints[1].kerningValue = rightKern;
where leftKern and rightKern hold the values you want.
Dave
Copy link to clipboard
Copied
myInsertion = myPara.insertionPoints[-3];
@+
Marc
Copy link to clipboard
Copied
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[0].kerningValue = leftKern;
myPara.characters[-3].insertionPoints[1].kerningValue = rightKern;
where leftKern and rightKern hold the values you want.
Dave
Copy link to clipboard
Copied
Cheers Dave, once again a top and fast answer.
Works a treat!
Cheers
Roy