SkFontMgr_custom_directory_factory.cpp 423 B

1234567891011121314151617
  1. /*
  2. * Copyright 2015 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. #include "include/core/SkFontMgr.h"
  8. #include "include/ports/SkFontMgr_directory.h"
  9. #ifndef SK_FONT_FILE_PREFIX
  10. # define SK_FONT_FILE_PREFIX "/usr/share/fonts/"
  11. #endif
  12. sk_sp<SkFontMgr> SkFontMgr::Factory() {
  13. return SkFontMgr_New_Custom_Directory(SK_FONT_FILE_PREFIX);
  14. }