Fonts

General TRichView support forum. Please post your questions here
Post Reply
mjsmithsr
Posts: 5
Joined: Sat Apr 18, 2009 7:57 pm
Location: Fountain Hills, AZ USA
Contact:

Fonts

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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).
Post Reply