Fixed text/block tests: Added Korean UnDotum font and fixed some issues.

This commit is contained in:
Tom Hacohen 2013-05-13 15:13:25 +01:00
parent 211ebc9e88
commit e7cd15b04b
4 changed files with 5 additions and 5 deletions

Binary file not shown.

BIN
src/tests/evas/TestFont.eet Normal file

Binary file not shown.

View File

@ -9,8 +9,8 @@
#include "Evas.h"
#include "evas_tests_helpers.h"
#define TEST_FONT_NAME "TEST_FONT"
#define TEST_FONT_SOURCE TESTS_SRC_DIR "./DejaVuSans.eet"
#define TEST_FONT_NAME "DejaVuSans,UnDotum"
#define TEST_FONT_SOURCE TESTS_SRC_DIR "/TestFont.eet"
#define START_TEXT_TEST() \
Evas *evas; \

View File

@ -23,12 +23,12 @@ EAPI int
_evas_textblock_format_offset_get(const Evas_Object_Textblock_Node_Format *n);
/* end of functions defined in evas_object_textblock.c */
#define TEST_FONT "font=TEST_FONT fount_source" TESTS_SRC_DIR "./DejaVuSans.eet"
#define TEST_FONT "font=DejaVuSans font_source=" TESTS_SRC_DIR "/TestFont.eet"
static const char *style_buf =
"DEFAULT='" TEST_FONT " font_size=10 color=#000 text_class=entry'"
"newline='br'"
"b='+ font=Sans:style=bold'";
"b='+ font_weight=bold'";
#define START_TB_TEST() \
Evas *evas; \
@ -1745,7 +1745,7 @@ START_TEST(evas_textblock_various)
stt = evas_textblock_style_new();
evas_textblock_style_set(stt,
"DEFAULT='font=" TEST_FONT " font_size=10 align=left color=#000000 wrap=char'");
"DEFAULT='" TEST_FONT " font_size=10 align=left color=#000000 wrap=char'");
evas_object_textblock_style_set(tb, stt);
evas_textblock_style_free(stt);