Adding Text Font to Library as Embedded font
I am using CS6 and would like to use JSFL to embed the fonts of all the text fields in an FLA document.
I can iterate through the text fields and I can set the embeddedCharacters and embeddedRanges properties but this does not add the Font to the library which is the result I want. (I can only achieve that by using IDE.)
I have read that the embedding needs to be done on the FontItem object but JSFL documentation says a new Font Item cannot be added to the library.
So how to use JSFL embed the font used by a text field and add it to the library?
Any help very much appreciated