Commit a112fe5a authored by eric@webkit.org's avatar eric@webkit.org
Browse files

2009-12-02 Yusuke Sato <yusukes@chromium.org>

        Reviewed by Dan Bernstein.

        Safari/Chromium for Windows fails to load CJK WebFonts
        https://bugs.webkit.org/show_bug.cgi?id=31804

        * platform/graphics/opentype/OpenTypeUtilities.cpp:
        (WebCore::renameAndActivateFont): Load a remote font even if the font has 2 or more faces.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d8a5d811
2009-12-02 Yusuke Sato <yusukes@chromium.org>
Reviewed by Dan Bernstein.
Safari/Chromium for Windows fails to load CJK WebFonts
https://bugs.webkit.org/show_bug.cgi?id=31804
* platform/graphics/opentype/OpenTypeUtilities.cpp:
(WebCore::renameAndActivateFont): Load a remote font even if the font has 2 or more faces.
2009-12-02 Avi Drissman <avi@chromium.org>
 
Reviewed by Darin Fisher.
......@@ -435,7 +435,7 @@ HANDLE renameAndActivateFont(SharedBuffer* fontData, const String& fontName)
DWORD numFonts = 0;
HANDLE fontHandle = AddFontMemResourceEx(rewrittenFontData.data(), fontData->size() + nameTableSize, 0, &numFonts);
if (fontHandle && numFonts != 1) {
if (fontHandle && numFonts < 1) {
RemoveFontMemResourceEx(fontHandle);
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment