TestFontMgr.h 432 B

12345678910111213141516171819
  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. #ifndef TestFontMgr_DEFINED
  8. #define TestFontMgr_DEFINED
  9. #include "include/core/SkFontMgr.h"
  10. // An SkFontMgr that always uses ToolUtils::create_portable_typeface().
  11. namespace ToolUtils {
  12. sk_sp<SkFontMgr> MakePortableFontMgr();
  13. } // namespace ToolUtils
  14. #endif // TestFontMgr_DEFINED