blob: b3afd2ff9f41d9bbf76f205eef012a093379998c [file] [log] [blame]
Ben Wagner483c7722018-02-20 17:06:07 -05001/*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
Mike Klein0cffcbf92019-03-20 11:08:46 -05008#ifndef TestFontMgr_DEFINED
9#define TestFontMgr_DEFINED
Ben Wagner483c7722018-02-20 17:06:07 -050010
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/core/SkFontMgr.h"
Ben Wagner483c7722018-02-20 17:06:07 -050012
Mike Kleinea3f0142019-03-20 11:12:10 -050013// An SkFontMgr that always uses ToolUtils::create_portable_typeface().
Ben Wagner483c7722018-02-20 17:06:07 -050014
Mike Kleinea3f0142019-03-20 11:12:10 -050015namespace ToolUtils {
Mike Klein0cffcbf92019-03-20 11:08:46 -050016sk_sp<SkFontMgr> MakePortableFontMgr();
Mike Kleinea3f0142019-03-20 11:12:10 -050017} // namespace ToolUtils
Ben Wagner483c7722018-02-20 17:06:07 -050018
Mike Klein0cffcbf92019-03-20 11:08:46 -050019#endif // TestFontMgr_DEFINED