2011-01-30 02:36:39 -08:00
|
|
|
#ifndef _EVAS_FONT_OT_H
|
|
|
|
# define _EVAS_FONT_OT_H
|
|
|
|
|
|
|
|
# ifdef HAVE_HARFBUZZ
|
2012-06-18 05:50:19 -07:00
|
|
|
# define OT_SUPPORT
|
2011-01-30 02:36:39 -08:00
|
|
|
# define USE_HARFBUZZ
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifdef OT_SUPPORT
|
2011-01-30 02:45:56 -08:00
|
|
|
# include <stdlib.h>
|
2011-02-01 04:17:52 -08:00
|
|
|
typedef struct _Evas_Font_OT_Info Evas_Font_OT_Info;
|
2011-01-30 02:38:08 -08:00
|
|
|
# else
|
2011-02-01 04:17:52 -08:00
|
|
|
typedef void *Evas_Font_OT_Info;
|
2011-01-30 02:45:56 -08:00
|
|
|
# endif
|
2011-01-30 02:36:39 -08:00
|
|
|
|
2011-01-30 02:45:56 -08:00
|
|
|
# ifdef OT_SUPPORT
|
2011-02-01 04:17:52 -08:00
|
|
|
struct _Evas_Font_OT_Info
|
2011-01-30 02:36:39 -08:00
|
|
|
{
|
2011-01-30 02:37:34 -08:00
|
|
|
size_t source_cluster;
|
2011-01-30 02:36:39 -08:00
|
|
|
Evas_Coord x_offset;
|
|
|
|
Evas_Coord y_offset;
|
|
|
|
};
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifdef OT_SUPPORT
|
|
|
|
# define EVAS_FONT_OT_X_OFF_GET(a) ((a).x_offset)
|
|
|
|
# define EVAS_FONT_OT_Y_OFF_GET(a) ((a).y_offset)
|
2011-01-30 02:37:34 -08:00
|
|
|
# define EVAS_FONT_OT_POS_GET(a) ((a).source_cluster)
|
2011-01-30 02:36:39 -08:00
|
|
|
# endif
|
|
|
|
|
2011-01-30 02:45:56 -08:00
|
|
|
# include "evas_text_utils.h"
|
2011-01-30 02:37:34 -08:00
|
|
|
EAPI int
|
2011-02-01 04:17:52 -08:00
|
|
|
evas_common_font_ot_cluster_size_get(const Evas_Text_Props *props, size_t char_index);
|
2011-01-30 02:37:34 -08:00
|
|
|
|
2011-01-30 02:36:39 -08:00
|
|
|
EAPI Eina_Bool
|
2011-05-29 02:20:18 -07:00
|
|
|
evas_common_font_ot_populate_text_props(const Eina_Unicode *text,
|
2016-02-04 02:07:08 -08:00
|
|
|
Evas_Text_Props *props, int len, Evas_Text_Props_Mode mode, const char *lang);
|
2011-01-30 02:36:39 -08:00
|
|
|
#endif
|
|
|
|
|