evas: Revert the patch for applying font style 72/78172/2
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 4 Jul 2016 11:39:23 +0000 (20:39 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 5 Jul 2016 04:24:29 +0000 (21:24 -0700)
It caused an issue for BreezeSans/Medium Condensed style.
Font should be modified before applying the feature.
@tizen_fix

Change-Id: I7bea1695a51916750f0e1835490914af16bfabdf

src/lib/evas/canvas/evas_font_dir.c
src/lib/evas/include/evas_private.h

index 81be889..23b9cb4 100644 (file)
@@ -420,7 +420,9 @@ evas_font_desc_unref(Evas_Font_Description *fdesc)
    if (--(fdesc->ref) == 0)
      {
         eina_stringshare_del(fdesc->name);
+        /* TIZEN_ONLY(20160704): Revert the patch for applying font style
         eina_stringshare_del(fdesc->style);
+         */
         eina_stringshare_del(fdesc->fallbacks);
         eina_stringshare_del(fdesc->lang);
         free(fdesc);
@@ -456,7 +458,9 @@ evas_font_desc_dup(const Evas_Font_Description *fdesc)
    new->name = eina_stringshare_ref(new->name);
    new->fallbacks = eina_stringshare_ref(new->fallbacks);
    new->lang = eina_stringshare_ref(new->lang);
+   /* TIZEN_ONLY(20160704): Revert the patch for applying font style
    new->style = eina_stringshare_ref(new->style);
+    */
 
    return new;
 }
@@ -508,7 +512,9 @@ evas_font_name_parse(Evas_Font_Description *fdesc, const char *name)
 #define _SET_STYLE(x, len) \
              fdesc->x = _evas_font_style_find_internal(name + len, tend, \
                    _style_##x##_map, _STYLE_MAP_LEN(_style_##x##_map));
+             /* TIZEN_ONLY(20160704): Revert the patch for applying font style
              eina_stringshare_replace_length(&(fdesc->style), name + 7, tend - (name + 7));
+              */
              _SET_STYLE(slant, 7);
              _SET_STYLE(weight, 7);
              _SET_STYLE(width, 7);
@@ -802,8 +808,10 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source,
               NULL);
         FcPatternAddString (p_nm, FC_FAMILY, (FcChar8*) fdesc->name);
 
+        /* TIZEN_ONLY(20160704): Revert the patch for applying font style
         if (fdesc->style)
           FcPatternAddString (p_nm, FC_STYLE, (FcChar8*) fdesc->style);
+         */
 
         /* Handle font fallbacks */
         if (fdesc->fallbacks)
index 4963106..b925b7a 100755 (executable)
@@ -1161,7 +1161,9 @@ struct _Evas_Font_Description
    Eina_Stringshare *name;
    Eina_Stringshare *fallbacks;
    Eina_Stringshare *lang;
+   /* TIZEN_ONLY(20160704): Revert the patch for applying font style
    Eina_Stringshare *style;
+    */
 
    Evas_Font_Slant slant;
    Evas_Font_Weight weight;