skia2/include/ports/SkFontMgr_empty.h
Ben Wagner 8ab590f17f 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>
2017-02-09 14:50:05 +00:00

22 lines
482 B
C++

/*
* 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