SkFontMgr_directory.h 552 B

123456789101112131415161718192021
  1. /*
  2. * Copyright 2015 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 SkFontMgr_directory_DEFINED
  8. #define SkFontMgr_directory_DEFINED
  9. #include "include/core/SkRefCnt.h"
  10. #include "include/core/SkTypes.h"
  11. class SkFontMgr;
  12. /** Create a custom font manager which scans a given directory for font files.
  13. * This font manager uses FreeType for rendering.
  14. */
  15. SK_API sk_sp<SkFontMgr> SkFontMgr_New_Custom_Directory(const char* dir);
  16. #endif // SkFontMgr_directory_DEFINED