summaryrefslogtreecommitdiff
path: root/third_party/BUILD.gn
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-06-13 06:08:25 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-13 06:08:25 -0700
commit72708b905309af930ca76a09746be5d09204cecd (patch)
treee346d906cb337ffd62763aa90745302cab7d495f /third_party/BUILD.gn
parentf49747f5fc85ea2acf0c5ff0ab589ad791bf6648 (diff)
downloadpdfium-72708b905309af930ca76a09746be5d09204cecd.tar.xz
fix skia + windows + gn
The Skia Windows build for PDFium differs from the Skia Chromium build in that it uses FreeType within PDFium and Direct Write within Chromium. This allows Chrome to match the UI of Windows, and allows PDFium to use FreeType to measure and draw. When PDFium was updated to use gn, the settings from Chrome were used as the basis for the PDFium settings. Subsequently, PDFium built with Skia on Windows drew text incorrectly as it used FreeType to look up the font glyphs and Direct Write to draw them. This fixes the gn files, and also fixes an error that crept into the now less-used gyp files. R=dsinclair@chromium.org BUG= Review-Url: https://codereview.chromium.org/2055353002
Diffstat (limited to 'third_party/BUILD.gn')
-rw-r--r--third_party/BUILD.gn9
1 files changed, 8 insertions, 1 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 1564a97bc5..766b6762c3 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -13,7 +13,7 @@ group("third_party") {
}
config("pdfium_third_party_config") {
- configs = ["..:pdfium_common_config"]
+ configs = [ "..:pdfium_common_config" ]
}
source_set("bigint") {
@@ -88,6 +88,13 @@ static_library("fx_freetype") {
"freetype/src/truetype/truetype.c",
"freetype/src/type1/type1.c",
]
+ if (pdf_use_skia) {
+ sources += [
+ "freetype/src/base/ftfntfmt.c",
+ "freetype/src/base/ftfstype.c",
+ "freetype/src/base/fttype1.c",
+ ]
+ }
}
if (!pdf_use_skia) {