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

Unified Diff: Source/core/platform/graphics/skia/SkiaFontWin.cpp

Issue 25094004: Update SkiaFontWin::paintSkiaText to override typeface for HFONT (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/skia/SkiaFontWin.cpp
diff --git a/Source/core/platform/graphics/skia/SkiaFontWin.cpp b/Source/core/platform/graphics/skia/SkiaFontWin.cpp
index 257959ee6a2f2131631f4caa7c0a68659a15c0e9..538f3d90685d3fcb2c295135442f3dbba69ed184 100644
--- a/Source/core/platform/graphics/skia/SkiaFontWin.cpp
+++ b/Source/core/platform/graphics/skia/SkiaFontWin.cpp
@@ -105,10 +105,8 @@ static void paintSkiaText(GraphicsContext* context,
// FIXME: Only needed to support the HFONT based paintSkiaText
// version where a new typeface is created from the HFONT.
- // As such it can go away once the direct-GDI code path is removed.
-#if ENABLE(GDI_FONTS_ON_WINDOWS)
+ // As such it can go away once the HFONT code path is removed.
paint.setTypeface(face);
-#endif
bool didFill = false;
@@ -126,9 +124,7 @@ static void paintSkiaText(GraphicsContext* context,
context->setupPaintForStroking(&paint);
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
data.setupPaint(&paint, context);
-#if ENABLE(GDI_FONTS_ON_WINDOWS)
paint.setTypeface(face);
-#endif
if (didFill) {
// If there is a shadow and we filled above, there will already be
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698