summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorCary Clark <caryclark@google.com>2016-03-24 10:23:13 -0400
committerCary Clark <caryclark@google.com>2016-03-24 10:23:13 -0400
commitcf6bffb79f6e62d096908e6629daba5525728272 (patch)
tree06eb3f3712074025024a48b0f9f67a2c6eb2b144 /third_party
parentea10a0dcae1b593fa9d85ae867c19be5c34ca8ed (diff)
downloadpdfium-cf6bffb79f6e62d096908e6629daba5525728272.tar.xz
fix windows build; add blend modes
Use FreeType instead of Direct Write on Windows. Since PDFium currently uses the graphics engine to draw but not to measure, the graphics engine needs to always use FreeType to get consistent metrics. Add a translation from PDF's blend modes to Skia's xfer modes. Turn on subpixel positioning for text to get more precise glyph placement. Pass the alpha through to get proper bitmap transparency. Address earlier nits. R=dsinclair@chromium.org, tsepez@chromium.org, dsinclair Review URL: https://codereview.chromium.org/1812263002 .
Diffstat (limited to 'third_party')
-rw-r--r--third_party/third_party.gyp10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp
index 665de0a146..7fd1082454 100644
--- a/third_party/third_party.gyp
+++ b/third_party/third_party.gyp
@@ -5,6 +5,7 @@
{
'variables': {
'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in standalone builds.
+ 'pdf_use_skia%': 0,
},
'target_defaults': {
'defines': [
@@ -80,6 +81,15 @@
'freetype/src/truetype/truetype.c',
'freetype/src/type1/type1.c',
],
+ 'conditions': [
+ ['pdf_use_skia==1', {
+ 'sources': [
+ 'freetype/src/base/ftfntfmt.c',
+ 'freetype/src/base/ftfstype.c',
+ 'freetype/src/base/fttype1.c',
+ ],
+ }],
+ ],
'variables': {
'clang_warning_flags': [
# open_face_PS_from_sfnt_stream() and open_face_from_buffer() in