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

[JS][CS3] Insertion Point

Participant ,
Sep 15, 2009 Sep 15, 2009

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
886
Translate
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

Translate
Guide ,
Sep 15, 2009 Sep 15, 2009

myInsertion = myPara.insertionPoints[-3];

@+

Marc

Translate
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

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

Translate
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
LATEST

Cheers Dave, once again a top and fast answer.

Works a treat!

Cheers

Roy

Translate
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