those are quite normal properties in the text suite:
//select some text
strokeAlignment = TextStrokeAlign.CENTER_ALIGNMENT;//TextStrokeAlign.OUTSIDE_ALIGNMENT
strokeColor = 'C=75 M=5 Y=100 K=0';
strokeWeight = '1 pt'
Hope it'll work
Thanks for the reply.
i don't mean to set the text strokeWeight style in the document, but am trying to use a script to find out the text's stroke properties on page.
to be more specific, i'm trying to use JS to find out a particular (selected) text's stroke weight and it's color.
Be sure to select text with equal formatting.
//ID CS 5.5
var strokeMeasurementUnit = app.viewPreferences.strokeMeasurementUnits.toString();
var mySel = app.selection;
alert('Strokecolourname: ' + mySel.strokeColor.name + ' \n ' + 'Strokeweight: ' + mySel.strokeWeight + ' ' + strokeMeasurementUnit)
Thanks so much
app.selection.strokeWeight //Stroke weight of the text
app.selection.strokeColor.colorValue //Stroke Color of the text
Code is based on the premise that the selection is on a text.
Manan, please trim your signature in the future. Thanks.