DirectX DrawText breaks W's
-
When I draw text in DirectX using DrawText, capital W's at the left edge of the text have the upper left pixels mysteriously cropped off. Has anyone else encountered this, who knows of a fix? I'm at Wit's End. Dave Goodman dgoodman@infoway.com www.dkgoodman.com "Actio sequitur esse."
-
When I draw text in DirectX using DrawText, capital W's at the left edge of the text have the upper left pixels mysteriously cropped off. Has anyone else encountered this, who knows of a fix? I'm at Wit's End. Dave Goodman dgoodman@infoway.com www.dkgoodman.com "Actio sequitur esse."
Is this with ID3DXFont or CD3DFont (or something based on it)? I've seen this problem with ID3DXFont; it seems that when it draws the text using certain fonts, the kerning bumps the W just out of the texture. Try inserting a space before the W maybe? I'm using a custom derivative of CD3DFont that decouples the font texture from the renderer, and lets me fiddle with the U,V coords for the characters (and "bake in" stuff like drop shadows). It's not as convenient as ID3DXFont and doesn't support Unicode, but it's a lot more flexible for playing with :) - Mike