forked from enlightenment/efl
parent
436fcc1c36
commit
7ee17d1174
|
@ -273,9 +273,9 @@ evas_common_font_add(RGBA_Font *fn, const char *name, int size)
|
||||||
if (fi)
|
if (fi)
|
||||||
{
|
{
|
||||||
fn->fonts = evas_list_append(fn->fonts, fi);
|
fn->fonts = evas_list_append(fn->fonts, fi);
|
||||||
|
fi->hinting = fn->hinting;
|
||||||
return fn;
|
return fn;
|
||||||
}
|
}
|
||||||
// fi->hinting = fn->hinting;
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,9 +290,9 @@ evas_common_font_memory_add(RGBA_Font *fn, const char *name, int size, const voi
|
||||||
if (fi)
|
if (fi)
|
||||||
{
|
{
|
||||||
fn->fonts = evas_list_append(fn->fonts, fi);
|
fn->fonts = evas_list_append(fn->fonts, fi);
|
||||||
|
fi->hinting = fn->hinting;
|
||||||
return fn;
|
return fn;
|
||||||
}
|
}
|
||||||
// fi->hinting = fn->hinting;
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -359,6 +359,42 @@ evas_common_hinting_available(Font_Hint_Flags hinting)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RGBA_Font *
|
||||||
|
evas_common_font_memory_hinting_load(const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting)
|
||||||
|
{
|
||||||
|
RGBA_Font *fn;
|
||||||
|
|
||||||
|
fn = evas_common_font_memory_load(name, size, data, data_size);
|
||||||
|
if (fn) evas_common_font_hinting_set(fn, hinting);
|
||||||
|
return fn;
|
||||||
|
}
|
||||||
|
|
||||||
|
RGBA_Font *
|
||||||
|
evas_common_font_hinting_load(const char *name, int size, Font_Hint_Flags hinting)
|
||||||
|
{
|
||||||
|
RGBA_Font *fn;
|
||||||
|
|
||||||
|
fn = evas_common_font_load(name, size);
|
||||||
|
if (fn) evas_common_font_hinting_set(fn, hinting);
|
||||||
|
return fn;
|
||||||
|
}
|
||||||
|
|
||||||
|
RGBA_Font *
|
||||||
|
evas_common_font_hinting_add(RGBA_Font *fn, const char *name, int size, Font_Hint_Flags hinting)
|
||||||
|
{
|
||||||
|
fn = evas_common_font_add(fn, name, size);
|
||||||
|
if (fn) evas_common_font_hinting_set(fn, hinting);
|
||||||
|
return fn;
|
||||||
|
}
|
||||||
|
|
||||||
|
RGBA_Font *
|
||||||
|
evas_common_font_memory_hinting_add(RGBA_Font *fn, const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting)
|
||||||
|
{
|
||||||
|
fn = evas_common_font_memory_add(fn, name, size, data, data_size);
|
||||||
|
if (fn) evas_common_font_hinting_set(fn, hinting);
|
||||||
|
return fn;
|
||||||
|
}
|
||||||
|
|
||||||
static Evas_Bool
|
static Evas_Bool
|
||||||
font_modify_cache_cb(Evas_Hash *hash, const char *key, void *data, void *fdata)
|
font_modify_cache_cb(Evas_Hash *hash, const char *key, void *data, void *fdata)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue