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+

Description Martin Robinson 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.
Comment 1 Martin Robinson 2011-02-11 16:35:41 PST
Created attachment 82206 [details]
Patch
Comment 2 Xan Lopez 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
Comment 3 Martin Robinson 2011-02-15 14:16:46 PST
Committed r78614: <http://trac.webkit.org/changeset/78614>