View | Details | Raw Unified | Return to bug 239358 | Differences between
and this patch

Collapse All | Expand All

(-)java/openjdk8/files/fontconfig.patch (-9 / +8 lines)
Lines 142-156 Link Here
142
 
142
 
143
 /*
143
 /*
144
  * Class:     sun_font_FreetypeFontScaler
144
  * Class:     sun_font_FreetypeFontScaler
145
@@ -726,32 +850,15 @@ Java_sun_font_FreetypeFontScaler_getGlyp
145
@@ -698,31 +826,15 @@
146
         return ptr_to_jlong(getNullGlyphImage());
146
         return ptr_to_jlong(getNullGlyphImage());
147
     }
147
     }
148
 
148
 
149
-    /* if algorithmic styling is required then we do not request bitmap */
149
-    if (!context->useSbits) {
150
-    if (context->doBold || context->doItalize) {
150
-        renderFlags |= FT_LOAD_NO_BITMAP;
151
-        renderFlags =  FT_LOAD_DEFAULT;
152
-    }
151
-    }
153
-
152
+    RenderingProperties renderingProperties;
153
+    readFontconfig((const FcChar8 *) scalerInfo->face->family_name,
154
+                   context->ptsz, context->aaType, &renderingProperties);
155
 
154
-    /* NB: in case of non identity transform
156
-    /* NB: in case of non identity transform
155
-     we might also prefer to disable transform before hinting,
157
-     we might also prefer to disable transform before hinting,
156
-     and apply it explicitly after hinting is performed.
158
-     and apply it explicitly after hinting is performed.
Lines 168-177 Link Here
168
-        target = FT_LOAD_TARGET_LCD_V;
170
-        target = FT_LOAD_TARGET_LCD_V;
169
-    }
171
-    }
170
-    renderFlags |= target;
172
-    renderFlags |= target;
171
+    RenderingProperties renderingProperties;
173
-
172
+    readFontconfig((const FcChar8 *) scalerInfo->face->family_name,
173
+                   context->ptsz, context->aaType, &renderingProperties);
174
 
175
     glyph_index = FT_Get_Char_Index(scalerInfo->face, glyphCode);
174
     glyph_index = FT_Get_Char_Index(scalerInfo->face, glyphCode);
176
 
175
 
177
-    error = FT_Load_Glyph(scalerInfo->face, glyphCode, renderFlags);
176
-    error = FT_Load_Glyph(scalerInfo->face, glyphCode, renderFlags);

Return to bug 239358