Forget add the bearing X, a little better now (hinting).

This commit is contained in:
Diego Borghetti 2009-07-28 21:06:23 +00:00
parent 4ad9dd7c8e
commit 4ba8397ab0

@ -573,10 +573,10 @@ int blf_glyph_bitmap_render(FontBLF *font, GlyphBLF *g, float x, float y)
return(0); return(0);
} }
glBitmap(0, 0, 0.0, 0.0, x, y, (const GLubyte *)&null_bitmap); glBitmap(0, 0, 0.0, 0.0, x + gt->pos_x, y, (const GLubyte *)&null_bitmap);
glPixelStorei(GL_UNPACK_ROW_LENGTH, gt->pitch * 8); glPixelStorei(GL_UNPACK_ROW_LENGTH, gt->pitch * 8);
glBitmap(gt->width, gt->height, 0.0, gt->pos_y, 0.0, 0.0, (const GLubyte *)gt->image); glBitmap(gt->width, gt->height, 0.0, gt->pos_y, 0.0, 0.0, (const GLubyte *)gt->image);
glBitmap(0, 0, 0.0, 0.0, -x, -y, (const GLubyte *)&null_bitmap); glBitmap(0, 0, 0.0, 0.0, -x - gt->pos_x, -y, (const GLubyte *)&null_bitmap);
return(1); return(1);
} }