summaryrefslogtreecommitdiff
path: root/legacy/edje/src/lib/edje_text.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2009-02-05 18:15:34 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2009-02-05 18:15:34 +0000
commit2e809f845f122049672bcfeeb5cedf0f4f5f7b3f (patch)
tree2b43b92af1331984c0ad8d55c266e499007b2fe9 /legacy/edje/src/lib/edje_text.c
parentad1af73d404ed156762dcff4f12667587943b4de (diff)
Interpolate text font size.
Often requested for animations that want to grow or shrink text quickly. This is a faster alternative to using geometry with rel1/rel2 and "text.fit: 1 1;" since it does not need to figure out which size fits better into that object. I tested and it does not seem to introduce any regression. Also checked with scale and text_class variations. SVN revision: 38958
Diffstat (limited to 'legacy/edje/src/lib/edje_text.c')
-rw-r--r--legacy/edje/src/lib/edje_text.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/legacy/edje/src/lib/edje_text.c b/legacy/edje/src/lib/edje_text.c
index 673ff95..2ca19eb 100644
--- a/legacy/edje/src/lib/edje_text.c
+++ b/legacy/edje/src/lib/edje_text.c
@@ -392,6 +392,9 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep,
392 sw = params->w; 392 sw = params->w;
393 sh = params->h; 393 sh = params->h;
394 } 394 }
395
396 size = params->text.size;
397
395 if ((ep->text.cache.in_size == size) && 398 if ((ep->text.cache.in_size == size) &&
396 (ep->text.cache.in_w == sw) && 399 (ep->text.cache.in_w == sw) &&
397 (ep->text.cache.in_h == sh) && 400 (ep->text.cache.in_h == sh) &&