blob: b2bb74ee1d6255413a1e6094380bb622202d7db0 [file] [log] [blame]
/*
* 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"
SkFontMgr* SkFontMgr::Factory() {
sk_sp<SkFontConfigInterface> fci(SkFontConfigInterface::RefGlobal());
if (!fci) {
return nullptr;
}
return SkFontMgr_New_FCI(std::move(fci));
}