skia2/tools/fonts/SkTestFontMgr.h
Ben Wagner 483c772cfd Add nativeFonts flag to Viewer.
This moves DMFontMgr and several related files which are tightly related
to fonts into tools/fonts, moves some flags around to prevent
duplication, and adds the nativeFonts handling to Viewer.

Change-Id: Id1bdad708a6b74319ac5ac9adfe21025db4ca0b2
Reviewed-on: https://skia-review.googlesource.com/108904
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2018-02-21 03:31:14 +00:00

20 lines
440 B
C++

/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkTestFontMgr_DEFINED
#define SkTestFontMgr_DEFINED
#include "SkFontMgr.h"
// An SkFontMgr that always uses sk_tool_utils::create_portable_typeface().
namespace sk_tool_utils {
sk_sp<SkFontMgr> MakePortableFontMgr();
} // namespace sk_tool_utils
#endif //SkTestFontMgr_DEFINED