As Doc of Illustrator:
CharacterAttributes:
kerningMethod | AutoKernType: AutoKernType.NOAUTOKERN AutoKernType.AUTO AutoKernType.OPTICAL AutoKernType.METRICSROMANONLY | r/w | The automatic kerning method to use. |
But my code get KerningMethod:
Dim val As Double = oCharacter.CharacterAttributes.kerningMethod
It shows exception: the requested attribute is undefined for the text range
My code set KerningMethod:
oCharacter.CharacterAttributes.KerningMethod = 50
It shows exception: Enumerated value expected
Why? How get and set KerningMethod in Illustrator?