From 58f965ffc7607777160a273653b6c1b56b40ce04 Mon Sep 17 00:00:00 2001 From: "eae@chromium.org" Date: Fri, 21 Jun 2013 20:09:20 +0000 Subject: Use TEXTMETRICS for font metrics for Skia/GDI Blink currently uses TEXTMETRICS for font metrics on windows, regardless of the font type. Skia currently does not. Set the SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS flag for windows which will instruct Skia to use the same font metrics for the GDI backend as our current GDI implementation. BUG=252705 R=reed@google.com, thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/17068009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207911 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/skia.gyp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'skia/skia.gyp') diff --git a/skia/skia.gyp b/skia/skia.gyp index e806d2c..3b5fb94 100644 --- a/skia/skia.gyp +++ b/skia/skia.gyp @@ -516,6 +516,9 @@ ], }], [ 'OS == "win"', { + 'defines': [ + 'SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' + ], 'sources!': [ '../third_party/skia/src/ports/SkOSFile_posix.cpp', '../third_party/skia/src/ports/SkThread_pthread.cpp', -- cgit v1.1