views:

239

answers:

0

I have a FormattedText object, like the one you'll normally pass to DrawingContext.DrawText

Most of the time, I'll pass this object to DrawingContext.DrawText, but sometimes I'll need to render this text to a file format not supported by WPF.

I know how to render the text to this file, what I don't know is how to get the brush that should be used to draw the text from the FormattedText object.

While FormattedText can have different brushes for different parts of the text in this application there will just one brush and it will always be a SolidColorBrush.

Thanks