Evas font: add comparison for fallbacks in evas_font_desc_cmp()

Summary:
fallbacks string also has to be compared to load proper fdesc.
If a font which does not have fallback fonts is loaded,
fallback fonts can't be appended to the same font.
@fix

Reviewers: tasn, woohyun, herdsman, zmike, devilhorns

Reviewed By: herdsman

Subscribers: #committers, zmike, raster, Blackmole, z-wony, cedric, jpeg

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D3707
This commit is contained in:
Youngbok Shin 2018-06-29 23:09:08 +03:00 committed by Daniel Hirt
parent baf3a2092a
commit a882235fce
1 changed files with 2 additions and 1 deletions

View File

@ -537,7 +537,8 @@ evas_font_desc_cmp(const Evas_Font_Description *a,
/* FIXME: Do actual comparison, i.e less than and bigger than. */
return !((a->name == b->name) && (a->weight == b->weight) &&
(a->slant == b->slant) && (a->width == b->width) &&
(a->spacing == b->spacing) && (a->lang == b->lang));
(a->spacing == b->spacing) && (a->lang == b->lang) &&
(a->fallbacks == b->fallbacks));
}
const char *