I'm trying to create my own text-rendering engine based on Rastertek's tutorial. The steps I did to make it work:
1. Created my own .png file, containing common ASCII symbols divided by spaces. PNG file had not been compressed.
2. Successfully parsed PNG file so that each symbol has it's own texture coordinates and width/height in pixels. The height is the same for each letter and equals to texture height.
3. Created DDS file from PNG font file.
4. Loaded texture from DDS file.
5. Created squares for each letter according to their width/height in pixels and texture coordinates.
6. Created orthogonal projection matrix to project them on the screen within pixel shader without any changes.
Everything seems well, but the result looks bad:
As you can see, the letters look dirty and unprecise. Thats how DDS file looks in DX texture tool for comparison:
Edited by GuardianX, 20 February 2013 - 12:29 PM.