Font Replacement Scripting (JavaScript)
Hello,
I am trying to develop a Script for InDesign that would allow my team to find/replace multiple fonts throughout a document. We have standard fonts used throughout our English documents, but need to use different fonts when these files come back from translation. For example "Book Antiqua" needs to be changed to "Source Han Serif SC" so that Chinese characters can be displayed properly.
Every script that I have found to address this need has worked on MOST of the text, but there are several sections that do not change. Even in the Find/Replace (via Ctrl+F) dialog within InDesign has the exact result. However, when I use the Find/Replace menu via Type>Find Font, it works just fine on all text. This leads me to believe that the scripts I have been using emulate the behavior of the standard Ctrl+F Find and Replace action, but not the Type>Find Font action.
How can I emulate the action from Type>Find Font rather than Ctrl+F in a script? I am using ExtendScript for development. I would appreciate any help that could lead me in the right direction.
Thank you
