
Rendering underlined text problem
Posted Saturday, 15 March, 2008 - 16:32 by georgwaechter inHello,
when rendering underlined text the white spaces between the characters are not underlined. The question is whether this is the expeceted behaviour or not ... i think the white spaces should be underlined too.
Picture of the text (if you zoom in you even see differences on the line within a word):

georg


Comments
Re: Rendering underlined text problem
This is a bug to me.. If I underline a sentence in Wordpad.exe for example, it underlines the spaces too.
Re: Rendering underlined text problem
This is not an OpenTK bug in and on itself, but rather a side-effect of the current implementation.
OpenTK currently calls
System.Drawing.Graphics.DrawStringto draw individual glyphs. It looks like this method does not underline spaces, when they are not inside a larger string.Text rendering will be greatly improved post-0.9.1 (relevant discussion), so you can expect this to be fixed or, at least, worked around.