comparison src/shape_stext.c @ 470:e54cd19cec28 Android_Skia

Remove unnecessary functions
author Thinker K.F. Li <thinker@branda.to>
date Thu, 12 Nov 2009 21:31:10 +0800
parents 4dc0be6c044a
children ba64f928542b
comparison
equal deleted inserted replaced
469:4dc0be6c044a 470:e54cd19cec28
602 #include <CUnit/Basic.h> 602 #include <CUnit/Basic.h>
603 603
604 static 604 static
605 void test_query_font_face(void) { 605 void test_query_font_face(void) {
606 mb_font_face_t *face; 606 mb_font_face_t *face;
607 mbe_status_t status;
608 607
609 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); 608 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100);
610 CU_ASSERT(face != NULL); 609 CU_ASSERT(face != NULL);
611 status = mbe_font_face_status((mbe_font_face_t *)face);
612 CU_ASSERT(status == MBE_STATUS_SUCCESS);
613 610
614 free_font_face(face); 611 free_font_face(face);
615 } 612 }
616 613
617 static 614 static
618 void test_make_scaled_font_face_matrix(void) { 615 void test_make_scaled_font_face_matrix(void) {
619 co_aix matrix[6] = {5, 0, 0, 0, 5, 0}; 616 co_aix matrix[6] = {5, 0, 0, 0, 5, 0};
620 mb_font_face_t *face; 617 mb_font_face_t *face;
621 mb_scaled_font_t *scaled; 618 mb_scaled_font_t *scaled;
622 mbe_status_t status;
623 619
624 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100); 620 face = query_font_face("serif", MB_FONT_SLANT_ROMAN, 100);
625 CU_ASSERT(face != NULL); 621 CU_ASSERT(face != NULL);
626 status = mbe_font_face_status((mbe_font_face_t *)face);
627 CU_ASSERT(status == MBE_STATUS_SUCCESS);
628 622
629 scaled = make_scaled_font_face_matrix(face, matrix); 623 scaled = make_scaled_font_face_matrix(face, matrix);
630 CU_ASSERT(scaled != NULL); 624 CU_ASSERT(scaled != NULL);
631 status = mbe_scaled_font_status((mbe_scaled_font_t *)scaled);
632 CU_ASSERT(status == MBE_STATUS_SUCCESS);
633 625
634 scaled_font_free(scaled); 626 scaled_font_free(scaled);
635 free_font_face(face); 627 free_font_face(face);
636 } 628 }
637 629