I currently have a sprite font texture that is a non power 2 texture. On disk its dimensions are 256 x 96
I have heard that DirectX 9 will attempt to resize it to become a Power of Two texture. To prevent this from happening I'm using this code
HRESULT hr = D3DXCreateTextureFromFileEx(device, texture.c_str(), D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT, NULL, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &texture);
Which should load the texture without resizing it, leaving it at 256 x 96. But when it is rendered it looks distorted, specifically if you look at the 'Y', '!', and '4' characters. Any ideas why this maybe happening?
I have included the original image and screen capture of the rendered texture