Changeset 69326 in webkit
- Timestamp:
- Oct 7, 2010 11:39:50 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69320 r69326 1 2010-09-21 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Chris Fleizach. 4 5 [GTK] The FreeType backend does not respect the FC_EMBOLDEN property 6 https://bugs.webkit.org/show_bug.cgi?id=46216 7 8 Added tests for this issue. 9 10 * platform/gtk/fonts/fontconfig-synthetic-bold-expected.txt: Added. 11 * platform/gtk/fonts/fontconfig-synthetic-bold.html: Added. 12 1 13 2010-10-05 Martin Robinson <mrobinson@igalia.com> 2 14 -
trunk/WebCore/ChangeLog
r69321 r69326 1 2010-10-05 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Chris Fleizach. 4 5 [GTK] The FreeType backend does not respect the FC_EMBOLDEN property 6 https://bugs.webkit.org/show_bug.cgi?id=46216 7 8 Look for the FC_EMBOLDEN property of the FcPattern when constructing 9 FontPlatformData and use it to enable synthetic bold fonts when necessary. 10 11 Test: platform/gtk/fonts/fontconfig-synthetic-bold.html 12 13 * platform/graphics/cairo/FontPlatformDataFreeType.cpp: 14 (WebCore::FontPlatformData::FontPlatformData): Properly handle the FC_EMBOLDEN property. 15 1 16 2010-10-07 James Simonsen <simonjam@chromium.org> 2 17 -
trunk/WebCore/platform/graphics/cairo/FontPlatformDataFreeType.cpp
r69320 r69326 107 107 if (FcPatternGetInteger(pattern, FC_SPACING, 0, &spacing) == FcResultMatch && spacing == FC_MONO) 108 108 m_fixedWidth = true; 109 110 if (fontDescription.weight() >= FontWeightBold) { 111 // The FC_EMBOLDEN property instructs us to fake the boldness of the font. 112 FcBool fontConfigEmbolden; 113 if (FcPatternGetBool(pattern, FC_EMBOLDEN, 0, &fontConfigEmbolden) == FcResultMatch) 114 m_syntheticBold = fontConfigEmbolden; 115 } 109 116 } 110 117 -
trunk/WebKitTools/ChangeLog
r69324 r69326 1 2010-09-21 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Chris Fleizach. 4 5 [GTK] The FreeType backend does not respect the FC_EMBOLDEN property 6 https://bugs.webkit.org/show_bug.cgi?id=46216 7 8 * DumpRenderTree/gtk/fonts/fonts.conf: Add a setting which enables FC_EMBOLDEN 9 for DejaVu Serif when there is no bold version available. This is necessary to 10 properly test the property in layout tests. 11 1 12 2010-10-07 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>, Andras Becsi <abecsi@webkit.org>, Balazs Kelemen <kbalazs@webkit.org> 2 13 -
trunk/WebKitTools/DumpRenderTree/gtk/fonts/fonts.conf
r68558 r69326 212 212 <edit name="rgba" mode="assign"> 213 213 <const>none</const> 214 </edit> 215 </match> 216 217 <!-- We need to enable simulated bold to for DejaVu Serif to ensure that we interpret 218 this property correctly in: platform/gtk/fonts/fontconfig-synthetic-bold.html --> 219 <match target="font"> 220 <test qual="any" name="family"> 221 <string>DejaVu Serif</string> 222 </test> 223 <test name="weight" compare="less_eq"> 224 <const>medium</const> 225 </test> 226 <test target="pattern" name="weight" compare="more"> 227 <const>medium</const> 228 </test> 229 <edit name="embolden" mode="assign"> 230 <bool>true</bool> 231 </edit> 232 <edit name="weight" mode="assign"> 233 <const>bold</const> 214 234 </edit> 215 235 </match>
Note: See TracChangeset
for help on using the changeset viewer.