Changeset 51605 in webkit


Ignore:
Timestamp:
Dec 2, 2009 11:17:46 AM (14 years ago)
Author:
eric@webkit.org
Message:

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.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51603 r51605  
     12009-12-02  Yusuke Sato  <yusukes@chromium.org>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Safari/Chromium for Windows fails to load CJK WebFonts
     6        https://bugs.webkit.org/show_bug.cgi?id=31804
     7       
     8        * platform/graphics/opentype/OpenTypeUtilities.cpp:
     9        (WebCore::renameAndActivateFont): Load a remote font even if the font has 2 or more faces.
     10
    1112009-12-02  Avi Drissman  <avi@chromium.org>
    212
  • trunk/WebCore/platform/graphics/opentype/OpenTypeUtilities.cpp

    r47975 r51605  
    436436    HANDLE fontHandle = AddFontMemResourceEx(rewrittenFontData.data(), fontData->size() + nameTableSize, 0, &numFonts);
    437437
    438     if (fontHandle && numFonts != 1) {
     438    if (fontHandle && numFonts < 1) {
    439439        RemoveFontMemResourceEx(fontHandle);
    440440        return 0;
Note: See TracChangeset for help on using the changeset viewer.