evas: add pattern "style" when evas query fonts via fontconfig
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 28 Jun 2016 01:49:37 +0000 (10:49 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 28 Jun 2016 04:32:49 +0000 (13:32 +0900)
commit2ce33e73a7d48d4b54a075c07f12c0162972f350
treec9f15c18e4f3a40420af7e72b0a8f8440cd930ec
parent4afcd8516848369d7e5f330deb91eae31c66b2c2
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
src/lib/evas/canvas/evas_font_dir.c
src/lib/evas/include/evas_private.h