blob: f20b1b5bc4735980eead33bb0e4e0a89679447e0 [file] [log] [blame]
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkFontMgr.h"
#include "include/ports/SkFontMgr_directory.h"
#ifndef SK_FONT_FILE_PREFIX
# if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
# define SK_FONT_FILE_PREFIX "/System/Library/Fonts/"
# else
# define SK_FONT_FILE_PREFIX "/usr/share/fonts/"
# endif
#endif
sk_sp<SkFontMgr> SkFontMgr::Factory() {
return SkFontMgr_New_Custom_Directory(SK_FONT_FILE_PREFIX);
}