summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2014-10-30 16:24:11 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2014-10-30 16:24:43 -0400
commit07c424ebbdbd7de5ab0418b496a42d52c6068333 (patch)
tree1919d5998d4ea77c9331083ba626d353118ceb2d
parente01f11f51978eb36fa6abf506c032d07e8dfc2e3 (diff)
config font hinting api addeddevs/discomfitor/cfg
needed for e's internal use, not sure if worth exposing since there's an env variable
-rw-r--r--src/lib/elm_config.c22
-rw-r--r--src/lib/elm_config.h14
2 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index 193ec6be7..e4b72daae 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -2660,6 +2660,28 @@ elm_config_cache_image_cache_size_set(int size)
2660 _elm_recache(); 2660 _elm_recache();
2661} 2661}
2662 2662
2663EAPI void
2664elm_config_font_hint_type_set(int type)
2665{
2666 Eina_List *l;
2667 Evas_Object *win;
2668
2669 if ((type < 0) || (type > 2)) return;
2670 _elm_config->font_hinting = type;
2671
2672 EINA_LIST_FOREACH(_elm_win_list, l, win)
2673 {
2674 Evas *e = evas_object_evas_get(win);
2675
2676 if (!_elm_config->font_hinting)
2677 evas_font_hinting_set(e, EVAS_FONT_HINTING_NONE);
2678 else if (_elm_config->font_hinting == 1)
2679 evas_font_hinting_set(e, EVAS_FONT_HINTING_AUTO);
2680 else if (_elm_config->font_hinting == 2)
2681 evas_font_hinting_set(e, EVAS_FONT_HINTING_BYTECODE);
2682 }
2683}
2684
2663EAPI int 2685EAPI int
2664elm_config_cache_edje_file_cache_size_get() 2686elm_config_cache_edje_file_cache_size_get()
2665{ 2687{
diff --git a/src/lib/elm_config.h b/src/lib/elm_config.h
index 58d23df56..ae16b4dc4 100644
--- a/src/lib/elm_config.h
+++ b/src/lib/elm_config.h
@@ -1024,6 +1024,20 @@ EAPI void elm_config_font_overlay_unset(const char *text_class);
1024EAPI void elm_config_font_overlay_apply(void); 1024EAPI void elm_config_font_overlay_apply(void);
1025 1025
1026/** 1026/**
1027 * Apply the specified font hinting type.
1028 * EVAS_FONT_HINTING_NONE < No font hinting
1029 * EVAS_FONT_HINTING_AUTO < Automatic font hinting
1030 * EVAS_FONT_HINTING_BYTECODE < Bytecode font hinting
1031 *
1032 * @ingroup Fonts
1033 *
1034 * This applies font hint changes to all windows of the current application.
1035 *
1036 * @since 1.13
1037 */
1038EAPI void elm_config_font_hint_type_set(int type);
1039
1040/**
1027 * Get the configured "finger size" 1041 * Get the configured "finger size"
1028 * 1042 *
1029 * @return The finger size 1043 * @return The finger size