Changeset 178301 in webkit
- Timestamp:
- Jan 12, 2015 3:32:26 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r178300 r178301 1 2015-01-12 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [Freetype] Don't use non-scalable fonts. 4 https://bugs.webkit.org/show_bug.cgi?id=31931 5 6 Reviewed by Martin Robinson. 7 8 No new tests needed. 9 10 * platform/graphics/freetype/FontCacheFreeType.cpp: 11 (WebCore::FontCache::createFontPlatformData): Prefer scalable fonts. 12 1 13 2015-01-12 Andreas Kling <akling@apple.com> 2 14 -
trunk/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp
r178133 r178301 166 166 // and font weight (we only match bold/non-bold here). 167 167 RefPtr<FcPattern> pattern = adoptRef(FcPatternCreate()); 168 // Never choose unscalable fonts, as they pixelate when displayed at different sizes. 169 FcPatternAddBool(pattern.get(), FC_SCALABLE, FcTrue); 168 170 String familyNameString(getFamilyNameStringFromFamily(family)); 169 171 if (!FcPatternAddString(pattern.get(), FC_FAMILY, reinterpret_cast<const FcChar8*>(familyNameString.utf8().data())))
Note: See TracChangeset
for help on using the changeset viewer.