0 Replies Latest reply on Aug 12, 2014 3:12 AM by Egor Malanichev

    Detect selected font (Illustrator/InDesign)

    Egor Malanichev Level 1

      I'm writing an ActionScript / JavaSctipt extension for Illustrator and InDesign.

       

      I created a text frame with some standard text written in it. BUT I need the font of the text to match the font that is currently selected in Illustrator/InDesign.

       

      To my knowledge whenever you launch Illustrator or InDesign, they always select 'Myriad Pro' to begin with. Furthermore, CSHostAdapter has CURRENT_FONT_CHANGED event, however, I cannot find out which font (and font size for that matter) it was actually changed to. Is there any way to find out which font is currently selected in Illustrator or InDesign?

       

      Any ideas and suggestions are welcome.