diff options
author | caryclark <caryclark@google.com> | 2016-03-21 06:55:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-21 06:55:52 -0700 |
commit | fe7ada7f0dc109cc8cf220607c2bd8c09bd1fa5e (patch) | |
tree | 53bec3fd08a6537b34bec413af86135545000669 /src/ports/SkFontMgr_custom_empty_factory.cpp | |
parent | a6359365887048ef055196de75591311d7a015f0 (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.cpp | 13 |
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(); +} |