Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkFontMgr_custom_empty.cpp
Go to the documentation of this file.
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
12
14public:
16
17 void loadSystemFonts(const SkFontScanner* scanner,
18 SkFontMgr_Custom::Families* families) const override
19 {
21 families->push_back().reset(family);
22 family->appendTypeface(sk_make_sp<SkTypeface_Empty>());
23 }
24
25};
26
28 return sk_make_sp<SkFontMgr_Custom>(EmptyFontLoader());
29}
sk_sp< SkFontMgr > SkFontMgr_New_Custom_Empty()
void loadSystemFonts(const SkFontScanner *scanner, SkFontMgr_Custom::Families *families) const override
void appendTypeface(sk_sp< SkTypeface > typeface)
void reset(T *ptr=nullptr)
Definition SkRefCnt.h:310