Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


EXTENDSCRIPT AE - is it possible to set the kerning type for addText, textDocument

Community Beginner ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Hello, 

 I am tryign to automate setting some very specific text template our team uses, is it possible to set the kerning type (eg. Metric, Optical) using extendscript/javascript. Below is a small portion of my code that enables all sorts of text properties so I assume I could call and sat the property much like the others below but haven't found any documentaiotn or example where it is being done. If possible,  I'd like to make sure that kerning is set to "optical".

Any help is greatly appreciated.

Thank you

 

textDocument.resetCharStyle();
textDocument.fontSize = 16;
textDocument.fillColor = [1, 1, 1];
textDocument.strokeColor = [0, 0, 0];
textDocument.strokeWidth = 0;
textDocument.font = "HelveticaNeueLTStd-Roman";
textDocument.strokeOverFill = false;
textDocument.applyStroke = false;
textDocument.applyFill = true;
textDocument.text = myString;
textDocument.justification = ParagraphJustification.CENTER_JUSTIFY;
textDocument.tracking = 98;
textProp.setValue(textDocument);
TOPICS
Expressions, Resources, Scripting, SDK

Views

78

Likes

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
New Here ,
Mar 31, 2021 Mar 31, 2021

Copy link to clipboard

Copied

LATEST

Did you ever get an answer to this?

Likes

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