directwrite

How can I render mixed-colour text in DirectWrite?

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! ...

SetLineSpacing() does not work in DirectWrite - why?

I'm rendering text in Direct2D/DirectWrite, but calling SetLineSpacing() on either TextFormat or TextLayout seems to have no effect. Does anyone know why? ...

Why don't Direct2D and DirectWrite use traditional COM objects?

I'm toying with a little 2D game engine in C# and decided to use Direct2D and DirectWrite for rendering. I know there's the Windows API Code Pack and SlimDX, but I'd really like to dig in and write an interface from scratch. I'm trying to do it without Managed C++, but Direct2D and DirectWrite don't appear to use traditional COM objects....

DirectWrite with hinting

Can I get glyph outline with hinting in DirectWrite? In GDI, if I call GetGlyphOutline without specifying GGO_UNHINTED, I get the outline with hinting applied. The counterpart in DirectWrite is IDWriteFontFace::GetGlyphRunOutline, but there is not such a switch. From what I see, the outline is raw and no hinting is applied. Is there a wa...

Unresolved external symbol.

Guys in this Main article there is a header file and a source file. After copying those two files and adding few headers: #include <Windows.h> #include <d2d1.h> #pragma comment(lib, "d2d1") #include <dwrite.h> #include <d2d1helper.h> #include "SafeRelease.h" //Safe realease file template<class Interface> inline void SafeRelease( ...