Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2009-07-29 01:06:23 +0400
committerDiego Borghetti <bdiego@gmail.com>2009-07-29 01:06:23 +0400
commit4ba8397ab0ec3092f17dca831b0553f50e12d931 (patch)
tree9b09b8e6e9691756447bd2623e2b061dfe7f84ab /source/blender/blenfont/intern/blf_glyph.c
parent4ad9dd7c8e359133bb3785810e6b7811afbc1abc (diff)
Forget add the bearing X, a little better now (hinting).
Diffstat (limited to 'source/blender/blenfont/intern/blf_glyph.c')
-rw-r--r--source/blender/blenfont/intern/blf_glyph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c
index 9a3d91ac4e5..805da02ba36 100644
--- a/source/blender/blenfont/intern/blf_glyph.c
+++ b/source/blender/blenfont/intern/blf_glyph.c
@@ -573,10 +573,10 @@ int blf_glyph_bitmap_render(FontBLF *font, GlyphBLF *g, float x, float y)
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);
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);
}