I want to use DirectWrite for mixed-colour text formatting (syntax highlighting, to be precise), but can't seem to find a way to do it, either in the Layout or Typography options. The only option is passing a Brush when rendering the text, which doesn't work for me because I basically have just one Layout. Help!
A:
As it turns out, you can set the formatting options of the TextLayout object, including passing a SolidColorBrush to indicate color.
Dmitri Nesteruk
2009-11-03 08:09:37