evas: add pattern "style" when evas query fonts via fontconfig 05/77205/2
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 28 Jun 2016 01:49:37 +0000 (10:49 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 30 Jun 2016 00:17:22 +0000 (17:17 -0700)
commitbd55ae5b48bbf1a08909d6dc44585a7c8555e9f2
treeea4d275f7e1453ab1bbfc5bb41e7a7374cb6ad20
parent9a621a0dc47b15abb33bd3cb5c6b0ad987e0f583
evas: add pattern "style" when evas query fonts via fontconfig

Summary:
Some fonts can have weird style and weight value.
If a font has a style name as "medium" and a weight value as "semi-bold",
Evas can't load the font using "font=Somefont:style=Medium".
It only can be load with "font=Somefont:style=SemiBold" or
"font=Somefont:weight=SemiBold".
On the other hand, it could be loaded when I tested the following commands.
fc-match -s ":family=Somefont:style=Medium" or
fc-match -s ":family=Somefont:weight=SemiBold"

Evas also should load font based on font's style name.
@fix

Test Plan: N/A

Reviewers: tasn, herdsman, cedric, woohyun, raster

Reviewed By: raster

Subscribers: Blackmole, z-wony, jpeg

Differential Revision: https://phab.enlightenment.org/D4108

Change-Id: Ibd9f53cb62568e2ee6e1e627f75607936396e6ff
src/lib/evas/canvas/evas_font_dir.c
src/lib/evas/include/evas_private.h