blob: f81e5656b0bb2f8f5a31f6be261982cb54ad130f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#ifdef E_TYPEDEFS
typedef struct _E_Font_Default E_Font_Default;
typedef struct _E_Font_Fallback E_Font_Fallback;
typedef struct _E_Font_Available E_Font_Available;
typedef struct _E_Font_Properties E_Font_Properties;
#else
#ifndef E_FONT_H
#define E_FONT_H
struct _E_Font_Default
{
const char *text_class;
const char *font;
Evas_Font_Size size;
};
struct _E_Font_Fallback
{
const char *name;
};
struct _E_Font_Available
{
const char *name;
};
struct _E_Font_Properties
{
const char *name;
Eina_List *styles;
};
EINTERN int e_font_init(void);
EINTERN int e_font_shutdown(void);
EAPI void e_font_apply(void);
EAPI Eina_List *e_font_available_list(void);
EAPI void e_font_available_list_free(Eina_List *available);
EAPI Eina_Hash *e_font_available_list_parse(Eina_List *list);
EAPI void e_font_available_hash_free(Eina_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);
/* global font fallbacks */
EAPI void e_font_fallback_clear(void);
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 Eina_List *e_font_fallback_list(void);
/* setup edje text classes */
EAPI void e_font_default_set(const char *text_class, const char *font, Evas_Font_Size size);
EAPI E_Font_Default *e_font_default_get(const char *text_class);
EAPI void e_font_default_remove(const char *text_class);
EAPI Eina_List *e_font_default_list(void);
EAPI const char *e_font_default_string_get(const char *text_class, Evas_Font_Size *size_ret);
#endif
#endif
|