• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2008 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 
8 #include "SkFontConfigInterface.h"
9 #include "SkFontMgr.h"
10 #include "SkFontMgr_FontConfigInterface.h"
11 
Factory()12 sk_sp<SkFontMgr> SkFontMgr::Factory() {
13     sk_sp<SkFontConfigInterface> fci(SkFontConfigInterface::RefGlobal());
14     if (!fci) {
15         return nullptr;
16     }
17     return SkFontMgr_New_FCI(std::move(fci));
18 }
19