SkFontMgr_fontconfig.h 598 B

12345678910111213141516171819202122
  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. #ifndef SkFontMgr_fontconfig_DEFINED
  8. #define SkFontMgr_fontconfig_DEFINED
  9. #include "include/core/SkRefCnt.h"
  10. #include <fontconfig/fontconfig.h>
  11. class SkFontMgr;
  12. /** Create a font manager around a FontConfig instance.
  13. * If 'fc' is NULL, will use a new default config.
  14. * Takes ownership of 'fc' and will call FcConfigDestroy on it.
  15. */
  16. SK_API sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc);
  17. #endif // #ifndef SkFontMgr_fontconfig_DEFINED