From: Seunggyun Kim <sgyun.kim@samsung.com>

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
This commit is contained in:
Seunggyun Kim 2012-06-14 10:55:16 +00:00 committed by Carsten Haitzler
parent c7fad4ef42
commit 4f7121cd4a
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -1713,6 +1713,7 @@ EAPI void
elm_config_font_overlay_apply(void)
{
_elm_config_font_overlay_apply();
_elm_rescale();
}
EAPI Evas_Coord