summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_common_private.h
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2015-03-19 19:02:02 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-03-19 19:02:03 +0900
commite197f8804f9a2bded1f7a0e5bccf5fb33c415d77 (patch)
tree72640ffb0fcc3b80a6addc7190bb7d503521cb31 /src/lib/evas/include/evas_common_private.h
parent6616d11619796eb94755ac62f193dc4ec17c2b48 (diff)
evas: Support bitmap embedded color font.
Summary: Add the code for getting bitmap buffers from embedded color font, And draw the bitmap buffers as images. For drawing the bitmap buffers as images, evas_common_draw_context_font_ext_set internal API is changed to pass additional gl engine functions. T2139 @feature Test Plan: 1. Set a bitmap embedded color font to textblock. 2. Set a unicode emoticon text. 3. See the result. Please check the sample unicode in the following link. http://www.fileformat.info/info/unicode/char/1f3af/index.htm http://www.fileformat.info/info/unicode/char/1f555/index.htm http://www.fileformat.info/info/unicode/char/2600/index.htm http://www.fileformat.info/info/unicode/char/263a/index.htm Reviewers: tasn, woohyun, jpeg, raster Reviewed By: raster Subscribers: herdsman, cedric Differential Revision: https://phab.enlightenment.org/D2084
Diffstat (limited to 'src/lib/evas/include/evas_common_private.h')
-rw-r--r--src/lib/evas/include/evas_common_private.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index aea5de4811..da53e2ed56 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -194,6 +194,10 @@ extern EAPI int _evas_log_dom_global;
194#include FT_SIZES_H 194#include FT_SIZES_H
195#include FT_MODULE_H 195#include FT_MODULE_H
196 196
197#ifndef FT_HAS_COLOR
198# define FT_HAS_COLOR(face) 0
199#endif
200
197#ifdef __GNUC__ 201#ifdef __GNUC__
198# if __GNUC__ >= 4 202# if __GNUC__ >= 4
199// BROKEN in gcc 4 on amd64 203// BROKEN in gcc 4 on amd64
@@ -708,9 +712,12 @@ struct _RGBA_Draw_Context
708 Cutout_Rects cutout; 712 Cutout_Rects cutout;
709 struct { 713 struct {
710 struct { 714 struct {
711 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg); 715 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg);
712 void (*gl_free) (void *ext_dat); 716 void (*gl_free) (void *ext_dat);
713 void (*gl_draw) (void *data, void *dest, void *context, RGBA_Font_Glyph *fg, int x, int y); 717 void (*gl_draw) (void *data, void *dest, void *context, RGBA_Font_Glyph *fg, int x, int y);
718 void *(*gl_image_new_from_data) (void *gc, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, Evas_Colorspace cspace);
719 void (*gl_image_free) (void *image);
720 void (*gl_image_draw) (void *gc, void *im, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, int smooth);
714 } func; 721 } func;
715 void *data; 722 void *data;
716 } font_ext; 723 } font_ext;