Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: Source/platform/fonts/skia/SkiaFontWin.cpp

Issue 99333013: Don't check lfQuality in LOGFONT as it has no effect on rendering (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/fonts/skia/SkiaFontWin.cpp
diff --git a/Source/platform/fonts/skia/SkiaFontWin.cpp b/Source/platform/fonts/skia/SkiaFontWin.cpp
index ce9369b48999264e6f1f3b15da10b8593c363ab2..9c0b34ab0a6abe02a9d58fc5bf7a0843c7046c8f 100644
--- a/Source/platform/fonts/skia/SkiaFontWin.cpp
+++ b/Source/platform/fonts/skia/SkiaFontWin.cpp
@@ -169,13 +169,13 @@ void paintSkiaText(GraphicsContext* context,
const SkRect& textRect)
{
int size;
- int paintTextFlags;
+ int paintTextFlags = data->paintTextFlags();
// Ensure font load for printing, because PDF device needs it.
if (context->isPrintingDevice())
FontPlatformData::ensureFontLoaded(hfont);
- RefPtr<SkTypeface> face = CreateTypefaceFromHFont(hfont, &size, &paintTextFlags);
+ RefPtr<SkTypeface> face = CreateTypefaceFromHFont(hfont, &size);
paintSkiaText(context, data, face.get(), size, paintTextFlags, numGlyphs, glyphs, advances, offsets, origin, textRect);
}
#endif
« no previous file with comments | « no previous file | Source/platform/fonts/win/FontPlatformDataWin.h » ('j') | Source/platform/fonts/win/FontPlatformDataWin.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698