comparison src/shape_text.c @ 465:d8181696b689 Android_Skia

Move functions into graphic engine layers. Cairo and Skia have their own header files and C/C++ files. Some functions are refactoried and move into graphic engine layer to make reset of MadButterfly independently from graphic engines.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 12 Nov 2009 21:22:30 +0800
parents 61a0bceb369d
children ba64f928542b
comparison
equal deleted inserted replaced
464:271212f325b4 465:d8181696b689
205 205
206 static int get_extents(sh_text_t *text, PangoRectangle *extents) { 206 static int get_extents(sh_text_t *text, PangoRectangle *extents) {
207 mbe_matrix_t fmatrix; 207 mbe_matrix_t fmatrix;
208 mbe_matrix_t ctm; 208 mbe_matrix_t ctm;
209 mbe_scaled_font_t *new_scaled; 209 mbe_scaled_font_t *new_scaled;
210 mbe_font_options_t *fopt;
211 210
212 pango_layout_get_extents(text->layout, NULL, extents); 211 pango_layout_get_extents(text->layout, NULL, extents);
213 pango_extents_to_pixels(extents,NULL); 212 pango_extents_to_pixels(extents,NULL);
214 return OK; 213 return OK;
215 } 214 }