edje/text - trivial change (typo, indent)

This commit is contained in:
ChunEon Park 2013-05-22 16:49:43 +09:00
parent 7cdda677de
commit f45f2ef0ae
2 changed files with 70 additions and 67 deletions

View File

@ -112,7 +112,6 @@ _edje_text_font_get(const char *base, const char *new, char **free_later)
return base;
else if (!base)
return new;
base_style = strstr(base, ":style=");
if (!base_style)
return new;

View File

@ -204,7 +204,7 @@ _edje_textblock_style_all_update(Edje *ed)
/* Configure fonts from text class if it exists */
tc = _edje_text_class_find(ed, tag->text_class);
/* Add and Ha`ndle tag parsed data */
/* Add and Handle tag parsed data */
eina_strbuf_append(txt, tag->value);
if (!strcmp(tag->key, "DEFAULT"))
@ -224,9 +224,11 @@ _edje_textblock_style_all_update(Edje *ed)
char font_size[32];
if (tc && tc->size)
snprintf(font_size, sizeof(font_size), "%f", (double) _edje_text_size_calc(tag->font_size, tc));
snprintf(font_size, sizeof(font_size), "%f",
(double) _edje_text_size_calc(tag->font_size, tc));
else
snprintf(font_size, sizeof(font_size), "%f", tag->font_size);
snprintf(font_size, sizeof(font_size), "%f",
tag->font_size);
eina_strbuf_append(txt, " ");
eina_strbuf_append(txt, "font_size=");
@ -241,6 +243,8 @@ _edje_textblock_style_all_update(Edje *ed)
eina_strbuf_append(txt, "font=");
f = (tc && tc->font) ? tc->font : tag->font;
if (tc && tc->font) printf("tc font = %s\n", tc->font);
if (tag->font) printf("tag font = %s\n", tag->font);
eina_strbuf_append_escaped(txt, f);
}