tags:

views:

82

answers:

1

I have FormattedText object, how can retrieve it fonts information like what range has which font like . ObjFormattedText.GetFontSize(istartIndex,iendIndex). ?

+1  A: 

Looking at FormattedText members it doesnt seem like that information is available after formatting.

The only way i know to format text and still retrieve the information is to take a different approach and use the TextFormatter instead, though this can be tricky. You have to implement several interfaces, and it is not always clear what exactly is expected of your implementation. Even then it is not trivial to retreive the required information, but at least it is possible.

Bubblewrap