summaryrefslogtreecommitdiffstats
path: root/skia/skia.gyp
diff options
context:
space:
mode:
authoreae@chromium.org <eae@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 20:09:20 +0000
committereae@chromium.org <eae@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-21 20:09:20 +0000
commit58f965ffc7607777160a273653b6c1b56b40ce04 (patch)
tree7bfa14855edd2f914af46e78befb89a8bab8dc3d /skia/skia.gyp
parent821bbbcbc459302f4c511c9d9f0ad93e4db09e8a (diff)
downloadchromium_src-58f965ffc7607777160a273653b6c1b56b40ce04.zip
chromium_src-58f965ffc7607777160a273653b6c1b56b40ce04.tar.gz
chromium_src-58f965ffc7607777160a273653b6c1b56b40ce04.tar.bz2
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
Diffstat (limited to 'skia/skia.gyp')
-rw-r--r--skia/skia.gyp3
1 files changed, 3 insertions, 0 deletions
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',