Update font size and leading for the Paragraph style which is based on another paragraph Style
Hello All,
I need a help. I am trying to update font size and leading of a paragraph style which is based on some other style. The font size and leading are set on the parent paragraph style which I want to decouple it.
For e.g. Paragraph style "aa" based on "BB" or "Basic Paragraph Style". The font size is set in "BB" or "Basic Paragraph Style". But don't want to modify that and only update "aa" style.
I tried following Javascript through my C++ code
var mydoc = app.documents.item(0);
var paragraphStyle = mydoc.paragraphStyles.itemByName(\'" + sParaStyleName + "\');
paragraphStyle.properties = {
pointSize:11,
leading:15,
};
Also tried C++ code
ErrorCode result = CmdUtils::ProcessCommand(newStyleCmd);
