Original Post
I'm trying to render text in OpenGL using a texture for each glyph rendered from freetype. It works perfectly and renders the character but I am having a bit of trouble with some strange pixels in my textures.
In that image at the bottom of the d, u and e there is a line of pixels which shouldn't be there. What is stranger is that these are in the middle of the texture as I have padding at the bottom of each where the descender would go.
My texture parameters are the following, I have heard about changing GL_LINEAR to GL_NEAREST for the mip filters but this only makes the artefacts more pixelated so they must be coming from freetype as far as I can see.
[font=lucida sans unicode,lucida grande,sans-serif]
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
[/font]
[font=lucida sans unicode,lucida grande,sans-serif]Does anyone know a reason and a way to remove this problem?[/font]
[font=lucida sans unicode,lucida grande,sans-serif]Thanks[/font]
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
[font=lucida sans unicode,lucida grande,sans-serif]

