diff --git a/legacy/evas/test/evas_test.c b/legacy/evas/test/evas_test.c index 335a86ebcf..37c3715b86 100644 --- a/legacy/evas/test/evas_test.c +++ b/legacy/evas/test/evas_test.c @@ -55,6 +55,7 @@ main(int argc, char **argv) int a = 0; double t1, t2; Evas_GL_Image *i[4], *bg, *l; + Evas_GL_Font *fn[4]; bg = __evas_gl_image_new_from_file(d, "img/sky001.png"); i[0] = __evas_gl_image_new_from_file(d, "img/fog1001.png"); @@ -62,6 +63,11 @@ main(int argc, char **argv) i[2] = __evas_gl_image_new_from_file(d, "img/fog3001.png"); i[3] = __evas_gl_image_new_from_file(d, "img/fog4001.png"); l = __evas_gl_image_new_from_file(d, "img/logo001.png"); + __evas_gl_text_font_add_path("./fnt"); + fn[0] = __evas_gl_text_font_new(d, "cinema", 24); + fn[1] = __evas_gl_text_font_new(d, "grunge", 16); + fn[2] = __evas_gl_text_font_new(d, "morpheus", 24); + fn[3] = __evas_gl_text_font_new(d, "notepad", 24); if (!bg) { printf("cannot find images!\n"); @@ -96,6 +102,18 @@ main(int argc, char **argv) 0, 0, __evas_gl_image_get_width(i[j]), __evas_gl_image_get_height(i[j]), xx - win_w, yy, win_w, win_h); } + __evas_gl_text_draw(fn[0], d, win, win_w, win_h, 30, 50, + "This is a line...", + 255, 255, 255, 255); + __evas_gl_text_draw(fn[1], d, win, win_w, win_h, 30, 100, + "Of anti-aliased text drawn nicely...", + 255, 100, 100, 255); + __evas_gl_text_draw(fn[2], d, win, win_w, win_h, 30, 150, + "With evas... Oh goodie isn't this fun!", + 100, 100, 255, 200); + __evas_gl_text_draw(fn[3], d, win, win_w, win_h, 30, 200, + "With Lots of colors & transparency too!", + 50, 200, 100, 100); __evas_gl_flush_draw(d, win); a++; if (a == (win_w * 4)) diff --git a/legacy/evas/test/fnt/cinema.ttf b/legacy/evas/test/fnt/cinema.ttf new file mode 100644 index 0000000000..469f3d4401 Binary files /dev/null and b/legacy/evas/test/fnt/cinema.ttf differ diff --git a/legacy/evas/test/fnt/grunge.ttf b/legacy/evas/test/fnt/grunge.ttf new file mode 100644 index 0000000000..34d1021843 Binary files /dev/null and b/legacy/evas/test/fnt/grunge.ttf differ diff --git a/legacy/evas/test/fnt/morpheus.ttf b/legacy/evas/test/fnt/morpheus.ttf new file mode 100644 index 0000000000..ee4c740d68 Binary files /dev/null and b/legacy/evas/test/fnt/morpheus.ttf differ diff --git a/legacy/evas/test/fnt/notepad.ttf b/legacy/evas/test/fnt/notepad.ttf new file mode 100644 index 0000000000..f24ad4b05b Binary files /dev/null and b/legacy/evas/test/fnt/notepad.ttf differ