aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/lib/engines/common/evas_font_ot.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/lib/engines/common/evas_font_ot.h
parentAdd the skeleton. (diff)
downloadSledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/lib/engines/common/evas_font_ot.h')
-rw-r--r--libraries/evas/src/lib/engines/common/evas_font_ot.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_font_ot.h b/libraries/evas/src/lib/engines/common/evas_font_ot.h
new file mode 100644
index 0000000..bc5ab02
--- /dev/null
+++ b/libraries/evas/src/lib/engines/common/evas_font_ot.h
@@ -0,0 +1,45 @@
1#ifndef _EVAS_FONT_OT_H
2# define _EVAS_FONT_OT_H
3
4# ifdef HAVE_CONFIG_H
5# include "config.h"
6# endif
7
8# ifdef HAVE_HARFBUZZ
9# define OT_SUPPORT
10# define USE_HARFBUZZ
11# endif
12
13# ifdef OT_SUPPORT
14# include <stdlib.h>
15typedef struct _Evas_Font_OT_Info Evas_Font_OT_Info;
16# else
17typedef void *Evas_Font_OT_Info;
18# endif
19
20# include "Evas.h"
21
22# ifdef OT_SUPPORT
23struct _Evas_Font_OT_Info
24{
25 size_t source_cluster;
26 Evas_Coord x_offset;
27 Evas_Coord y_offset;
28};
29# endif
30
31# ifdef OT_SUPPORT
32# define EVAS_FONT_OT_X_OFF_GET(a) ((a).x_offset)
33# define EVAS_FONT_OT_Y_OFF_GET(a) ((a).y_offset)
34# define EVAS_FONT_OT_POS_GET(a) ((a).source_cluster)
35# endif
36
37# include "evas_text_utils.h"
38EAPI int
39evas_common_font_ot_cluster_size_get(const Evas_Text_Props *props, size_t char_index);
40
41EAPI Eina_Bool
42evas_common_font_ot_populate_text_props(const Eina_Unicode *text,
43 Evas_Text_Props *props, int len);
44#endif
45