If I have a text layer that has more than one set of styles is there a way to know what style range applies to what range of text?
var textData = node.get("typeTool").export().font;
var alignment = textData.alignment;
var colors = textData.colors;
var fonts = textData.names;
var leading = textData.leading;
var sizes = textData.sizes;
var styles = textData.styles;
var textDecoration = textData.textDecoration;
var weights = textData.weights;
var lengths = textData.lengthArray;
var numberOfRanges = lengths.length; // 3
var numberOfFonts = fonts.length; // 4
In my test example there are four entries in the names array (font names) and the lengths array there is three entries. They don't quite line up with the style ranges.
Also, what is AdobeInvisFont? It is one entry in the font names. Is it related?
If I have a text layer that has more than one set of styles is there a way to know what style range applies to what range of text?
In my test example there are four entries in the names array (font names) and the lengths array there is three entries. They don't quite line up with the style ranges.
Also, what is AdobeInvisFont? It is one entry in the font names. Is it related?