# HG changeset patch # User Thinker K.F. Li # Date 1283007247 -28800 # Node ID 5781b2485e38ef67c859246ea6bcd97dec2db6bf # Parent ae1ae29348d191446208b176d4782c79fd504485 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. diff -r ae1ae29348d1 -r 5781b2485e38 src/shape_stext.c --- 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);