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.




Answer this question

Inverse fonts

  • kleistweg

    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.

  • notinthisworld

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


  • msulmanch

    Just what i needed, thanks !

  • Steve_____

    Then draw the box with a pair of triangles and render the font over the top in black

  • KeithMescha

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



  • Inverse fonts