From 4f7121cd4a0ff818fa04684bf499ddbdd690c31d Mon Sep 17 00:00:00 2001 From: Seunggyun Kim Date: Thu, 14 Jun 2012 10:55:16 +0000 Subject: [PATCH] From: Seunggyun Kim Subject: [E-devel] [Patch] elm_config_font_overlay_apply bug fix [Current Issue] - The API applies the changes with elm_config_font_overlay_set(). But at the first time, application fonts have not been changed after elm_config_font_overlay_apply api is called. The application fonts changed only when the display is updated or elm_config_font_overlay_apply api is called again. [Main cause] - When the elm_config_font_overlay_apply is called at fist time, it calls edje_text_class_del and edje_text_class_set in locally. But edje_text_class_set just returns without _ejde_reclc() when new text class is ceated. So in this case, there is nothing to be changed. Since second call the api, edje_text_class_del api calls _edje_recalc() in locally. So the application fonts are changed. [Change Description] - There is two method. The first is to enable ejde_test_class_set api is can be recalced when the fist calling. The second is to add _elm_rescale() function in elm_config_font_overlay_apply API. This occurs edje_recalc effect after font overay set. I attached the second method. SVN revision: 72124 --- legacy/elementary/ChangeLog | 5 +++++ legacy/elementary/src/lib/elm_config.c | 1 + 2 files changed, 6 insertions(+) diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 1b549100b8..2667247f1a 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -179,3 +179,8 @@ 2012-06-12 Mike Blumenkrantz * Map no longer saves its files to directories outside of the user's home directory + +2012-06-14 Seunggyun Kim + + * Fix elm_config_font_overlay_apply() to also apply rescaling properly. + diff --git a/legacy/elementary/src/lib/elm_config.c b/legacy/elementary/src/lib/elm_config.c index eeecd01ab5..6d9c6df1fd 100644 --- a/legacy/elementary/src/lib/elm_config.c +++ b/legacy/elementary/src/lib/elm_config.c @@ -1713,6 +1713,7 @@ EAPI void elm_config_font_overlay_apply(void) { _elm_config_font_overlay_apply(); + _elm_rescale(); } EAPI Evas_Coord