Page 1 of 1

Fonts

Posted: Wed Jul 18, 2012 9:37 pm
by mjsmithsr
How do I find out what fonts are used in a document? I want to build a drop sown list that shows the fonts in use in the document at the top and all the other available fonts in alpha order following them. I know how to do everything except get the fonts in use in the active document.

Posted: Thu Jul 19, 2012 3:51 pm
by Sergey Tkachenko
The simplest way is checking all RVStyle.TextStyles.FontName, from 0 to RVStyle.TextStyles.Count-1.
Although this list may contain some text styles not used in the document (if not called after DeleteUnusedStyles).