From: Youngbok Shin Date: Thu, 26 Nov 2015 08:16:13 +0000 (+0200) Subject: evas: Add ExtraLight, ExtraBold for font weight. X-Git-Tag: upstream/1.20.0~8115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=507baf4891951933bcd8bd5baee5f9e716398fee;p=platform%2Fupstream%2Fefl.git evas: Add ExtraLight, ExtraBold for font weight. Summary: Evas supports UltraLight, UltraBold as font weight. These terms have same weight value as ExtraLight, ExtraBold. Some applications, for example, fontforge, use ExtraLight, ExtraBold terms for these weight values. So, it would be better to support these terms, too. @feature Test Plan: None Reviewers: tasn, woohyun, herdsman Reviewed By: herdsman Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3126 --- diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c index c3491cc..df0f5ef 100644 --- a/src/lib/evas/canvas/evas_font_dir.c +++ b/src/lib/evas/canvas/evas_font_dir.c @@ -268,12 +268,14 @@ static int _fc_weight_map[] = FC_WEIGHT_NORMAL, FC_WEIGHT_THIN, FC_WEIGHT_ULTRALIGHT, + FC_WEIGHT_EXTRALIGHT, FC_WEIGHT_LIGHT, FC_WEIGHT_BOOK, FC_WEIGHT_MEDIUM, FC_WEIGHT_SEMIBOLD, FC_WEIGHT_BOLD, FC_WEIGHT_ULTRABOLD, + FC_WEIGHT_EXTRABOLD, FC_WEIGHT_BLACK, FC_WEIGHT_EXTRABLACK }; @@ -328,12 +330,14 @@ static Style_Map _style_weight_map[] = {"normal", EVAS_FONT_WEIGHT_NORMAL}, {"thin", EVAS_FONT_WEIGHT_THIN}, {"ultralight", EVAS_FONT_WEIGHT_ULTRALIGHT}, + {"extralight", EVAS_FONT_WEIGHT_EXTRALIGHT}, {"light", EVAS_FONT_WEIGHT_LIGHT}, {"book", EVAS_FONT_WEIGHT_BOOK}, {"medium", EVAS_FONT_WEIGHT_MEDIUM}, {"semibold", EVAS_FONT_WEIGHT_SEMIBOLD}, {"bold", EVAS_FONT_WEIGHT_BOLD}, {"ultrabold", EVAS_FONT_WEIGHT_ULTRABOLD}, + {"extrabold", EVAS_FONT_WEIGHT_ULTRABOLD}, {"black", EVAS_FONT_WEIGHT_BLACK}, {"extrablack", EVAS_FONT_WEIGHT_EXTRABLACK} }; diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 7a9aafc..bb9e8af 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -1443,12 +1443,14 @@ _format_command(Evas_Object *eo_obj, Evas_Object_Textblock_Format *fmt, const ch * @li "normal" * @li "thin" * @li "ultralight" + * @li "extralight" * @li "light" * @li "book" * @li "medium" * @li "semibold" * @li "bold" * @li "ultrabold" + * @li "extrabold" * @li "black" * @li "extrablack" * @code diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h index 26868c1..56407d9 100644 --- a/src/lib/evas/include/evas_private.h +++ b/src/lib/evas/include/evas_private.h @@ -485,12 +485,14 @@ enum _Evas_Font_Weight EVAS_FONT_WEIGHT_NORMAL, EVAS_FONT_WEIGHT_THIN, EVAS_FONT_WEIGHT_ULTRALIGHT, + EVAS_FONT_WEIGHT_EXTRALIGHT, EVAS_FONT_WEIGHT_LIGHT, EVAS_FONT_WEIGHT_BOOK, EVAS_FONT_WEIGHT_MEDIUM, EVAS_FONT_WEIGHT_SEMIBOLD, EVAS_FONT_WEIGHT_BOLD, EVAS_FONT_WEIGHT_ULTRABOLD, + EVAS_FONT_WEIGHT_EXTRABOLD, EVAS_FONT_WEIGHT_BLACK, EVAS_FONT_WEIGHT_EXTRABLACK };