Inverse fonts

What is the prefered way to render inverse fonts ?

I need to render some text where most of the caracters are black one white, but some are inverse (white on black). Are there any prefered ways of doing this?

Tomas.

[227 byte] By [Tomas259] at [2008-1-22]
# 1
The way I've always done it is to render the text four times, shifted up, down, left and right by a single pixel. Then render it again with no shift, coloured black.
TomForsyth at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...
# 2

I want the whole box to be inverse, not just a shadow around the letter.

Tomas259 at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...
# 3
Then draw the box with a pair of triangles and render the font over the top in black?
TomForsyth at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...
# 4

You can invert the colors of your font texture during rendering by using the texture stage argument D3DTA_TEXTURE|D3DTA_COMPLEMENT.

RobertDunlop at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...
# 5
Just what i needed, thanks !
Tomas259 at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...