Flutter Engine
Loading...
Searching...
No Matches
platform.cc
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "
txt/platform.h
"
6
7
#if defined(SK_FONTMGR_FREETYPE_EMPTY_AVAILABLE)
8
#include "third_party/skia/include/ports/SkFontMgr_empty.h"
9
#endif
10
11
namespace
txt
{
12
13
std::vector<std::string>
GetDefaultFontFamilies
() {
14
return
{
"Arial"
};
15
}
16
17
sk_sp<SkFontMgr>
GetDefaultFontManager
(uint32_t font_initialization_data) {
18
#if defined(SK_FONTMGR_FREETYPE_EMPTY_AVAILABLE)
19
static
sk_sp<SkFontMgr> mgr = SkFontMgr_New_Custom_Empty();
20
#else
21
static
sk_sp<SkFontMgr> mgr = SkFontMgr::RefEmpty();
22
#endif
23
return
mgr;
24
}
25
26
}
// namespace txt
txt
Definition
paragraph_builder_skia.cc:15
txt::GetDefaultFontFamilies
std::vector< std::string > GetDefaultFontFamilies()
Definition
platform.cc:13
txt::GetDefaultFontManager
sk_sp< SkFontMgr > GetDefaultFontManager(uint32_t font_initialization_data)
Definition
platform.cc:17
platform.h
txt
src
txt
platform.cc
Generated on Thu Nov 6 2025 16:11:30 for Flutter Engine by
1.9.8