Commit 58f965ff authored by eae@chromium.org's avatar eae@chromium.org

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
parent 821bbbcb
...@@ -516,6 +516,9 @@ ...@@ -516,6 +516,9 @@
], ],
}], }],
[ 'OS == "win"', { [ 'OS == "win"', {
'defines': [
'SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS'
],
'sources!': [ 'sources!': [
'../third_party/skia/src/ports/SkOSFile_posix.cpp', '../third_party/skia/src/ports/SkOSFile_posix.cpp',
'../third_party/skia/src/ports/SkThread_pthread.cpp', '../third_party/skia/src/ports/SkThread_pthread.cpp',
......
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