I've been wrestling with this problem for quite some time, and I need some expert help.
Although I thought I once read a forum post regarding this issue, I am sure there was no definite resolution to the problem.
My application is intended to run at a full-screen (and static) resolution of 800x600. In an attempt to design a slick-looking UI, I stumbled into an issue with small fonts: poor alignment (i.e., they get muddled together in a somewhat random-looking manner) and poor clarity. Small fonts are necesary for a UI that contains a bunch of character data (stats, item descriptions, etc.), and I can't get them to perform the way I want.
I took a screenshot in 800x600 windowed mode to demonstrate this issue. When viewed at higher resolutions, the text naturally looks clearer simply as a result of more pixels (an obvious fact that I am aware of, and is also likely why CE fonts look much clearer at higher resolutions). In this shot there are two text sections: one with CE a font and one using D3DFont as a basline comparison. Font def file code:
Code: Select all
<Font Name="Tahoma-9" Filename="../datafiles/fonts/Tahoma.ttf" Type="Dynamic" Size="7" NativeHorzRes="800" NativeVertRes="600" AutoScaled="false"/>
Also note that I have antialiasing turned off for this font (in my code).
When looking at this image, I would like you to note the following things:
1. The individual characters are jumbled together and inconsistently aligned (i.e., the spacing between characters is sometimes too large and other times nonexistent).
2. The accuracy of the font portrayal is off: the dot on the "i" in "quick" is not separated, etc.
http://www.student.cs.uwaterloo.ca/~rcameron/example.bmp
Any help would be great. Perhaps this is merely a usage error.
Cheers,
Ryan