diff options
author | 2017-02-08 17:29:33 -0500 | |
---|---|---|
committer | 2017-02-09 14:50:05 +0000 | |
commit | 8ab590f17fed097758b209c3b82fc1e4d802768e (patch) | |
tree | b9a6c3f5080507eba25bd5b188dfa01cb5172663 /include/ports/SkFontMgr_empty.h | |
parent | 6f223283661c1ddc4a5334d2464804c6b6ba3ffa (diff) |
Split custom font managers.
Some users would like to use the empty font manager, but the directory
gont manager brings in extra dependencies to work which would otherwise
be unneeded. Allow these users to build just the bits of code they
actually need.
Change-Id: Ib029ef2682883509bad5a2aa39f1ef55631f4d8a
Reviewed-on: https://skia-review.googlesource.com/8200
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include/ports/SkFontMgr_empty.h')
-rw-r--r-- | include/ports/SkFontMgr_empty.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/ports/SkFontMgr_empty.h b/include/ports/SkFontMgr_empty.h new file mode 100644 index 0000000000..dbeef586cb --- /dev/null +++ b/include/ports/SkFontMgr_empty.h @@ -0,0 +1,21 @@ +/* + * Copyright 2015 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef SkFontMgr_empty_DEFINED +#define SkFontMgr_empty_DEFINED + +#include "SkRefCnt.h" +#include "SkTypes.h" + +class SkFontMgr; + +/** Create a custom font manager that contains no built-in fonts. + * This font manager uses FreeType for rendering. + */ +SK_API sk_sp<SkFontMgr> SkFontMgr_New_Custom_Empty(); + +#endif // SkFontMgr_empty_DEFINED |