Why can't apply Character Style to Text Object in Illustrator 2021, 2023?
I attach sample data: Font2.ai
https://drive.google.com/file/d/1EZyR4TARjRAb9n7myCI9s2Oy8VD-wiCj/view?usp=sharing
Character style using a Composite Font.
This is my code:
var doc=app.documents[0];
var style=doc.characterStyles[1];
var oText=doc.textFrames[0];
style.applyTo(oText.textRange);
In Illustrator 2020: it apply ok,
But with Illustrator 2021,2023 thi occur error: an Illustrator error occurred: 285 ('')
Why can't apply Character Style to Text Object in Illustrator 2021, 2023?

