blob: a4ee13841a5d3b6464ca91e3957a1c43c4fa852f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/*
* Copyright 2008 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFontConfigInterface.h"
#include "SkFontMgr.h"
#include "SkFontMgr_FontConfigInterface.h"
sk_sp<SkFontMgr> SkFontMgr::Factory() {
sk_sp<SkFontConfigInterface> fci(SkFontConfigInterface::RefGlobal());
if (!fci) {
return nullptr;
}
return SkFontMgr_New_FCI(std::move(fci));
}
|