summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_font_dir.c
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-02-17 09:23:06 +0000
committerTom Hacohen <tom@stosb.com>2016-02-17 09:23:06 +0000
commitd9b93542cf36e9dbc1ad649c8c47f483554ce1cd (patch)
treed1bac59be28c7dfa7f405ed15680ef078d3e768d /src/lib/evas/canvas/evas_font_dir.c
parentf6e019565f3ed5108e0309bd0f3785cc501671f7 (diff)
downloadefl-d9b93542cf36e9dbc1ad649c8c47f483554ce1cd.tar.gz
Evas font: allow ":fallbacks" keyword when Evas parses font keyword
Summary: Developers could use fallback fonts using only font_fallbacks keyword. The keyword is only allowed for Evas Textblock. It has to be common feature for other text type objects. Applying this patch, Text and Textgrid can add fallback fonts. @feature Test Plan: Set font like the following example to Textblock, Text, Textgrid. Sans:fallbacks=Inconsolata Reviewers: tasn, herdsman, woohyun Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3704
Diffstat (limited to 'src/lib/evas/canvas/evas_font_dir.c')
-rw-r--r--src/lib/evas/canvas/evas_font_dir.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c
index 3e544def71..bfab21f2eb 100644
--- a/src/lib/evas/canvas/evas_font_dir.c
+++ b/src/lib/evas/canvas/evas_font_dir.c
@@ -533,6 +533,11 @@ evas_font_name_parse(Evas_Font_Description *fdesc, const char *name)
eina_stringshare_replace_length(&(fdesc->lang), tmp, tend - tmp);
eina_stringshare_replace(&(fdesc->lang), evas_font_lang_normalize(fdesc->lang));
}
+ else if (!strncmp(name, ":fallbacks=", 11))
+ {
+ const char *tmp = name + 11;
+ eina_stringshare_replace_length(&(fdesc->fallbacks), tmp, tend - tmp);
+ }
}
}