Skip to content
  • mrobinson@webkit.org's avatar
    2010-12-10 Martin Robinson <mrobinson@igalia.com> · 7be215a5
    mrobinson@webkit.org authored
            Reviewed by Xan Lopez.
    
            [Gtk] style="font-family: courier" makes text disappear
            https://bugs.webkit.org/show_bug.cgi?id=47452
    
            Added a GTK+ test for invalid fonts.
    
            * platform/gtk/fonts/font-with-no-valid-encoding-expected.checksum: Added.
            * platform/gtk/fonts/font-with-no-valid-encoding-expected.png: Added.
            * platform/gtk/fonts/font-with-no-valid-encoding-expected.txt: Added.
            * platform/gtk/fonts/font-with-no-valid-encoding.html: Added.
    2010-12-10  Martin Robinson  <mrobinson@igalia.com>
    
            Reviewed by Xan Lopez.
    
            [Gtk] style="font-family: courier" makes text disappear
            https://bugs.webkit.org/show_bug.cgi?id=47452
    
            Don't ever use fonts that do not have any of the three charmaps that
            Fontconfig supports (Unicode, Apple Roman and Symbol). If we select
            a font that doesn't have one of these charmaps, use the next font in
            the list.
    
            Test: platform/gtk/fonts/font-with-no-valid-encoding.html
    
            * platform/graphics/freetype/FontCacheFreeType.cpp:
            (WebCore::FontCache::createFontPlatformData): Check whether the
            font we selected has a valid Fontconfig charmap.
            * platform/graphics/freetype/FontPlatformData.h: Added new method definition.
            * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
            (WebCore::FontPlatformData::hasCompatibleCharmap): Added this method which
            verifies that a font has a valid Fontconfig charmap.
    2010-12-10  Martin Robinson  <mrobinson@igalia.com>
    
            Reviewed by Xan Lopez.
    
            [Gtk] style="font-family: courier" makes text disappear
            https://bugs.webkit.org/show_bug.cgi?id=47452
    
            Add a test that verifies that fonts without valid charmaps are
            never selected.
    
            * DumpRenderTree/gtk/DumpRenderTree.cpp:
            (initializeFonts): Initialize DRT with our font (derived from Ahem)
            that has no valid charmap.
            * DumpRenderTree/gtk/fonts/FontWithNoValidEncoding.fon: Added.
            * DumpRenderTree/gtk/fonts/fonts.conf: Updated settings to override users'
            settings which may disable selection of bitmap fonts.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7be215a5