1 /* 2 * Copyright 2023 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_data_DEFINED 8 #define SkFontMgr_data_DEFINED 9 10 #include "include/core/SkData.h" 11 #include "include/core/SkRefCnt.h" 12 #include "include/core/SkSpan.h" 13 #include "include/core/SkTypes.h" 14 15 class SkFontMgr; 16 17 /** Create a custom font manager which wraps a collection of SkData-stored fonts. 18 * This font manager uses FreeType for rendering. 19 */ 20 SK_API sk_sp<SkFontMgr> SkFontMgr_New_Custom_Data(SkSpan<sk_sp<SkData>>); 21 22 #endif // SkFontMgr_data_DEFINED 23