Skip to main content
Participating Frequently
June 11, 2009
Answered

How can we get the type of kerning (optical / matrix) applied on Text

  • June 11, 2009
  • 1 reply
  • 1052 views

Hi all,

I am working in Adobe InDesign CS4. And I want to get which kerning (optical / matrix) applied on text by API's.

But I couldn't find it in Adobe Indesign SDK.

If anyone has any idea how to achieve it, then let me know.

Regards,

Jitendra Kumar Singh

This topic has been closed for replies.
Correct answer Bartek_Kropaczewski

GetKerningMethod() from ICompositionStyle. And think that second method is Metrics.

Regards and you are welcome

Bartek

1 reply

Bartek_Kropaczewski
Bartek_KropaczewskiCorrect answer
Inspiring
June 11, 2009

GetKerningMethod() from ICompositionStyle. And think that second method is Metrics.

Regards and you are welcome

Bartek

Participating Frequently
June 11, 2009

Thanks cropas

GetKerningMethod() function returns ClassID

ie ( for optical kerning we get ClassID "kKFPairKerningBoss" and for matrix we get "kDefaultPairKerningBoss")

Now it is working fine.

Participating Frequently
October 15, 2010

I'm revisiting an old topic here, as it's still relevant in CS5.

Is there any example code that illustrates this?  I'm starting with a kTextAttrPairKernMethodBoss, which has a GetClassData() method that's supposed to give this.  But I can't find any documentation for what the possible return types are, or how to get at them.

Thank you!

-pd