Bug 54323

Summary: [Freetype] Better map CSS font weight to Fontconfig font weight
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo, mrobinson, xan.lopez
Priority: P3 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch xan.lopez: review+

Martin Robinson
Reported 2011-02-11 16:28:55 PST
Right now we only make a distinction between bold and regular when mapping CSS font weight to Fontconfig font weight. This means that we don't always select the best font. We should be more discerning when asking Fontconfig for the appropriate font.
Attachments
Patch (30.96 KB, patch)
2011-02-11 16:35 PST, Martin Robinson
xan.lopez: review+
Martin Robinson
Comment 1 2011-02-11 16:35:41 PST
Xan Lopez
Comment 2 2011-02-11 16:40:02 PST
Comment on attachment 82206 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=82206&action=review OK. > Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp:165 > + return FC_WEIGHT_ULTRABLACK; ULTRA BLACK
Martin Robinson
Comment 3 2011-02-15 14:16:46 PST
Note You need to log in before you can comment on or make changes to this bug.