Commit ba1ac0c8 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2011-04-08 Mike Reed <reed@google.com>

        Reviewed by Eric Seidel.

        Replace SKIA_TEXT with isNativeFontRenderingAllowed() for print-preview to work
        https://bugs.webkit.org/show_bug.cgi?id=57782

        No new tests. This change only affects print-preview and build option SKIA_GPU

        * platform/graphics/skia/SkiaFontWin.cpp:
        (WebCore::paintSkiaText):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6944057a
2011-04-08 Mike Reed <reed@google.com>
Reviewed by Eric Seidel.
Replace SKIA_TEXT with isNativeFontRenderingAllowed() for print-preview to work
https://bugs.webkit.org/show_bug.cgi?id=57782
No new tests. This change only affects print-preview and build option SKIA_GPU
* platform/graphics/skia/SkiaFontWin.cpp:
(WebCore::paintSkiaText):
2011-04-08 Ryosuke Niwa <rniwa@webkit.org>
 
Reviewed by Tony Chang, Darin Adler, and Enrica Casucci.
......@@ -377,10 +377,10 @@ bool paintSkiaText(GraphicsContext* context,
paint.reset();
platformContext->setupPaintForStroking(&paint, 0, 0);
paint.setFlags(SkPaint::kAntiAlias_Flag);
#if ENABLE(SKIA_TEXT)
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
setupPaintForFont(hfont, &paint);
#endif
if (!platformContext->isNativeFontRenderingAllowed()) {
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
setupPaintForFont(hfont, &paint);
}
if (didFill) {
// If there is a shadow and we filled above, there will already be
......
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