skia2/include/ports/SkFontMgr_directory.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
526 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_directory_DEFINED
#define SkFontMgr_directory_DEFINED
#include "SkRefCnt.h"
#include "SkTypes.h"
class SkFontMgr;
/** Create a custom font manager which scans a given directory for font files.
* This font manager uses FreeType for rendering.
*/
SK_API sk_sp<SkFontMgr> SkFontMgr_New_Custom_Directory(const char* dir);
#endif // SkFontMgr_directory_DEFINED