Rendering underlined text problem
Posted Saturday, 15 March, 2008 - 16:32 by georgwaechter in
Hello,
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
Mar 15
17:38:26Re: Rendering underlined text problem
posted by objarniThis is a bug to me.. If I underline a sentence in Wordpad.exe for example, it underlines the spaces too.
Mar 15
18:47:00Re: Rendering underlined text problem
posted by the FiddlerThis 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.