Mercurial > MadButterfly
comparison src/shape_stext.c @ 450:a417fd980228
Replace cairo_format_t with mb_img_fmt_t.
- Replace all CAIRO_FORAMT_* with MB_IFMT_*
- wrap functions return or are argumented with image format.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 05 Aug 2009 15:54:44 +0800 |
parents | 16116d84bc5e |
children | d8181696b689 |
comparison
equal
deleted
inserted
replaced
449:c525edac917e | 450:a417fd980228 |
---|---|
708 mbe_status_t status; | 708 mbe_status_t status; |
709 | 709 |
710 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); | 710 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); |
711 CU_ASSERT(face != NULL); | 711 CU_ASSERT(face != NULL); |
712 status = mbe_font_face_status((mbe_font_face_t *)face); | 712 status = mbe_font_face_status((mbe_font_face_t *)face); |
713 CU_ASSERT(status == CAIRO_STATUS_SUCCESS); | 713 CU_ASSERT(status == MBE_STATUS_SUCCESS); |
714 | 714 |
715 free_font_face(face); | 715 free_font_face(face); |
716 } | 716 } |
717 | 717 |
718 static | 718 static |
723 mbe_status_t status; | 723 mbe_status_t status; |
724 | 724 |
725 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); | 725 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); |
726 CU_ASSERT(face != NULL); | 726 CU_ASSERT(face != NULL); |
727 status = mbe_font_face_status((mbe_font_face_t *)face); | 727 status = mbe_font_face_status((mbe_font_face_t *)face); |
728 CU_ASSERT(status == CAIRO_STATUS_SUCCESS); | 728 CU_ASSERT(status == MBE_STATUS_SUCCESS); |
729 | 729 |
730 scaled = make_scaled_font_face_matrix(face, matrix); | 730 scaled = make_scaled_font_face_matrix(face, matrix); |
731 CU_ASSERT(scaled != NULL); | 731 CU_ASSERT(scaled != NULL); |
732 status = mbe_scaled_font_status((mbe_scaled_font_t *)scaled); | 732 status = mbe_scaled_font_status((mbe_scaled_font_t *)scaled); |
733 CU_ASSERT(status == CAIRO_STATUS_SUCCESS); | 733 CU_ASSERT(status == MBE_STATUS_SUCCESS); |
734 | 734 |
735 scaled_font_free(scaled); | 735 scaled_font_free(scaled); |
736 free_font_face(face); | 736 free_font_face(face); |
737 } | 737 } |
738 | 738 |