aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontMgr_custom_empty_factory.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-03-21 06:55:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-21 06:55:52 -0700
commitfe7ada7f0dc109cc8cf220607c2bd8c09bd1fa5e (patch)
tree53bec3fd08a6537b34bec413af86135545000669 /src/ports/SkFontMgr_custom_empty_factory.cpp
parenta6359365887048ef055196de75591311d7a015f0 (diff)
Make FreeType usable on Windows.
Add missing functionality so that pdfium can use FreeType from Windows. Add an empty custom font manager so pdfium can use FreeType without any local fonts. R=bungeman@google.com Review URL: https://codereview.chromium.org/1817633002
Diffstat (limited to 'src/ports/SkFontMgr_custom_empty_factory.cpp')
-rw-r--r--src/ports/SkFontMgr_custom_empty_factory.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ports/SkFontMgr_custom_empty_factory.cpp b/src/ports/SkFontMgr_custom_empty_factory.cpp
new file mode 100644
index 0000000000..c9487cdcc7
--- /dev/null
+++ b/src/ports/SkFontMgr_custom_empty_factory.cpp
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkFontMgr.h"
+#include "SkFontMgr_custom.h"
+
+SkFontMgr* SkFontMgr::Factory() {
+ return SkFontMgr_New_Custom_Empty();
+}