2005-04-02 09:11:04 -08:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
|
|
|
typedef struct _E_Font_Default E_Font_Default;
|
|
|
|
typedef struct _E_Font_Fallback E_Font_Fallback;
|
2006-04-30 04:54:04 -07:00
|
|
|
typedef struct _E_Font_Available E_Font_Available;
|
2007-04-05 04:59:10 -07:00
|
|
|
typedef struct _E_Font_Properties E_Font_Properties;
|
2005-04-02 09:11:04 -08:00
|
|
|
|
|
|
|
#else
|
|
|
|
#ifndef E_FONT_H
|
|
|
|
#define E_FONT_H
|
|
|
|
|
|
|
|
struct _E_Font_Default
|
|
|
|
{
|
2007-05-03 16:19:40 -07:00
|
|
|
const char *text_class;
|
|
|
|
const char *font;
|
|
|
|
Evas_Font_Size size;
|
2005-04-02 09:11:04 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Font_Fallback
|
|
|
|
{
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *name;
|
2005-04-02 09:11:04 -08:00
|
|
|
};
|
|
|
|
|
2005-04-21 21:25:51 -07:00
|
|
|
struct _E_Font_Available
|
|
|
|
{
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *name;
|
2005-04-21 21:25:51 -07:00
|
|
|
};
|
|
|
|
|
2007-04-05 04:59:10 -07:00
|
|
|
struct _E_Font_Properties
|
|
|
|
{
|
|
|
|
const char *name;
|
|
|
|
Evas_List *styles;
|
|
|
|
};
|
|
|
|
|
2005-04-02 09:11:04 -08:00
|
|
|
EAPI int e_font_init(void);
|
|
|
|
EAPI int e_font_shutdown(void);
|
|
|
|
EAPI void e_font_apply(void);
|
2005-05-30 20:01:53 -07:00
|
|
|
EAPI Evas_List *e_font_available_list(void);
|
|
|
|
EAPI void e_font_available_list_free(Evas_List *available);
|
2007-04-05 04:59:10 -07:00
|
|
|
EAPI Evas_Hash *e_font_available_list_parse(Evas_List *list);
|
|
|
|
EAPI void e_font_available_hash_free(Evas_Hash *hash);
|
|
|
|
EAPI E_Font_Properties *e_font_fontconfig_name_parse(const char *font);
|
|
|
|
EAPI const char *e_font_fontconfig_name_get(const char *name, const char *style);
|
|
|
|
EAPI void e_font_properties_free(E_Font_Properties *efp);
|
2005-04-02 09:11:04 -08:00
|
|
|
|
|
|
|
/* global font fallbacks */
|
|
|
|
EAPI void e_font_fallback_clear(void);
|
2005-05-30 20:01:53 -07:00
|
|
|
EAPI void e_font_fallback_append(const char *font);
|
|
|
|
EAPI void e_font_fallback_prepend(const char *font);
|
|
|
|
EAPI void e_font_fallback_remove(const char *font);
|
|
|
|
EAPI Evas_List *e_font_fallback_list(void);
|
2005-04-02 09:11:04 -08:00
|
|
|
|
|
|
|
/* setup edje text classes */
|
2007-05-03 16:19:40 -07:00
|
|
|
EAPI void e_font_default_set(const char *text_class, const char *font, Evas_Font_Size size);
|
2005-05-30 20:01:53 -07:00
|
|
|
EAPI E_Font_Default *e_font_default_get(const char *text_class);
|
|
|
|
EAPI void e_font_default_remove(const char *text_class);
|
|
|
|
EAPI Evas_List *e_font_default_list(void);
|
2007-05-03 16:19:40 -07:00
|
|
|
EAPI const char *e_font_default_string_get(const char *text_class, Evas_Font_Size *size_ret);
|
2005-04-27 23:27:25 -07:00
|
|
|
|
2005-04-02 09:11:04 -08:00
|
|
|
#endif
|
|
|
|
#endif
|