comparison src/shape_stext.c @ 473:ba64f928542b Android_Skia

Remove mbe_matrix_t type. The struct mbe_matrix_t is defined in a layout accoriding definition of Cairo. It is not feasible for all graphic engine. Now, we start supporting of other graphic engine; Skia, so use type of (co_aix[6]) defined and used by MadButterfly intead of mbe_matrix_t. And, bridges of graphic engines are responsible for translate matrics into the matrix type of the graphic enigne.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 12 Nov 2009 21:32:58 +0800
parents e54cd19cec28
children 744c64eb3182
comparison
equal deleted inserted replaced
472:4254eaa699d0 473:ba64f928542b
147 */ 147 */
148 static 148 static
149 mb_scaled_font_t *make_scaled_font_face_matrix(mb_font_face_t *face, 149 mb_scaled_font_t *make_scaled_font_face_matrix(mb_font_face_t *face,
150 co_aix *matrix) { 150 co_aix *matrix) {
151 mbe_scaled_font_t *scaled_font; 151 mbe_scaled_font_t *scaled_font;
152 mbe_matrix_t font_matrix; 152 static co_aix id[6] = { 1, 0, 0,
153 static mbe_matrix_t id = { 153 0, 1, 0 };
154 1, 0,
155 0, 1,
156 0, 0
157 };
158 154
159 ASSERT(matrix != NULL); 155 ASSERT(matrix != NULL);
160 156
161 font_matrix.xx = *matrix++;
162 font_matrix.xy = *matrix++;
163 font_matrix.x0 = *matrix++;
164 font_matrix.yx = *matrix++;
165 font_matrix.yy = *matrix++;
166 font_matrix.y0 = *matrix;
167 scaled_font = mbe_scaled_font_create((mbe_font_face_t *)face, 157 scaled_font = mbe_scaled_font_create((mbe_font_face_t *)face,
168 &font_matrix, &id); 158 matrix, &id);
169 159
170 return (mb_scaled_font_t *)scaled_font; 160 return (mb_scaled_font_t *)scaled_font;
171 } 161 }
172 162
173 static 163 static