Ben Wagner | 483c772 | 2018-02-20 17:06:07 -0500 | [diff] [blame] | 1 | /* |
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 Klein | 0cffcbf9 | 2019-03-20 11:08:46 -0500 | [diff] [blame] | 8 | #ifndef TestFontMgr_DEFINED |
9 | #define TestFontMgr_DEFINED | ||||
Ben Wagner | 483c772 | 2018-02-20 17:06:07 -0500 | [diff] [blame] | 10 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 11 | #include "include/core/SkFontMgr.h" |
Ben Wagner | 483c772 | 2018-02-20 17:06:07 -0500 | [diff] [blame] | 12 | |
Mike Klein | ea3f014 | 2019-03-20 11:12:10 -0500 | [diff] [blame] | 13 | // An SkFontMgr that always uses ToolUtils::create_portable_typeface(). |
Ben Wagner | 483c772 | 2018-02-20 17:06:07 -0500 | [diff] [blame] | 14 | |
Mike Klein | ea3f014 | 2019-03-20 11:12:10 -0500 | [diff] [blame] | 15 | namespace ToolUtils { |
Mike Klein | 0cffcbf9 | 2019-03-20 11:08:46 -0500 | [diff] [blame] | 16 | sk_sp<SkFontMgr> MakePortableFontMgr(); |
Mike Klein | ea3f014 | 2019-03-20 11:12:10 -0500 | [diff] [blame] | 17 | } // namespace ToolUtils |
Ben Wagner | 483c772 | 2018-02-20 17:06:07 -0500 | [diff] [blame] | 18 | |
Mike Klein | 0cffcbf9 | 2019-03-20 11:08:46 -0500 | [diff] [blame] | 19 | #endif // TestFontMgr_DEFINED |