aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/lib/engines/common/evas_font_ot.h
diff options
context:
space:
mode:
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