Mercurial > MadButterfly
changeset 760:5781b2485e38
Fix position issue of stext.
Sometime, stext does not show at correct position. After some study,
it is caused by a typo in the code of create scaled font
(make_scaled_font_face()). The typo causes a fault in compute
transform matrix for scale fonts.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 28 Aug 2010 22:54:07 +0800 |
parents | ae1ae29348d1 |
children | 69ee361bf259 |
files | src/shape_stext.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/shape_stext.c Sat Aug 28 22:14:38 2010 +0800 +++ b/src/shape_stext.c Sat Aug 28 22:54:07 2010 +0800 @@ -357,7 +357,7 @@ matrix[2] = shift_x; matrix[3] = 0; matrix[4] = font_sz; - matrix[5] += shift_y; + matrix[5] = shift_y; matrix_mul(noshift_aggr, matrix, scaled_matrix); scaled = make_scaled_font_face_matrix(face, scaled_matrix);