⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98692 in webkit


Ignore:
Timestamp:
Oct 27, 2011, 10:37:32 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

Reland patch ensure font load before calling Skia during printing
https://bugs.webkit.org/show_bug.cgi?id=70390

Patch by Arthur Hsu <arthurhsu@chromium.org> on 2011-10-27
Reviewed by James Robinson.

  • platform/graphics/chromium/FontChromiumWin.cpp:

(WebCore::Font::drawGlyphs):

  • platform/graphics/skia/SkiaFontWin.cpp:

(WebCore::paintSkiaText):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r98690 r98692  
     12011-10-27  Arthur Hsu  <arthurhsu@chromium.org>
     2
     3        Reland patch ensure font load before calling Skia during printing
     4        https://bugs.webkit.org/show_bug.cgi?id=70390
     5
     6        Reviewed by James Robinson.
     7
     8        * platform/graphics/chromium/FontChromiumWin.cpp:
     9        (WebCore::Font::drawGlyphs):
     10        * platform/graphics/skia/SkiaFontWin.cpp:
     11        (WebCore::paintSkiaText):
     12
    1132011-10-27  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Source/WebCore/platform/graphics/chromium/FontChromiumWin.cpp

    r98645 r98692  
    396396
    397397    HFONT hfont = font->platformData().hfont();
    398     PlatformSupport::ensureFontLoaded(hfont);
    399398
    400399    // We draw the glyphs in chunks to avoid having to do a heap allocation for
  • trunk/Source/WebCore/platform/graphics/skia/SkiaFontWin.cpp

    r98645 r98692  
    3434#include "AffineTransform.h"
    3535#include "PlatformContextSkia.h"
     36#include "PlatformSupport.h"
    3637#include "Gradient.h"
    3738#include "Pattern.h"
    3839#include "SkCanvas.h"
     40#include "SkDevice.h"
    3941#include "SkPaint.h"
    4042#include "SkShader.h"
     
    237239    SkCanvas* canvas = platformContext->canvas();
    238240    TextDrawingModeFlags textMode = platformContext->getTextDrawingMode();
     241    // Ensure font load for printing, because PDF device needs it.
     242    if (canvas->getTopDevice()->getDeviceCapabilities() & SkDevice::kVector_Capability)
     243        PlatformSupport::ensureFontLoaded(hfont);
    239244
    240245    // Filling (if necessary). This is the common case.
Note: See TracChangeset for help on using the changeset viewer.