• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[JS][CS3] Insertion Point

Participant ,
Sep 15, 2009 Sep 15, 2009

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?

Cheers (as always)
Roy

TOPICS
Scripting

Views

735

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Sep 15, 2009 Sep 15, 2009

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

Votes

Translate

Translate
Guide ,
Sep 15, 2009 Sep 15, 2009

Copy link to clipboard

Copied

myInsertion = myPara.insertionPoints[-3];

@+

Marc

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 15, 2009 Sep 15, 2009

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 15, 2009 Sep 15, 2009

Copy link to clipboard

Copied

LATEST

Cheers Dave, once again a top and fast answer.

Works a treat!

Cheers

Roy

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines