Flutter Engine
platform_windows.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 "third_party/skia/include/ports/SkTypeface_win.h"
6 #include "txt/platform.h"
7 
8 namespace txt {
9 
10 std::vector<std::string> GetDefaultFontFamilies() {
11  return {"Segoe UI", "Arial"};
12 }
13 
14 sk_sp<SkFontMgr> GetDefaultFontManager() {
15  return SkFontMgr_New_DirectWrite();
16 }
17 
18 } // namespace txt
sk_sp< SkFontMgr > GetDefaultFontManager()
Definition: platform.cc:13
std::vector< std::string > GetDefaultFontFamilies()
Definition: platform.cc:9