Home | History | Annotate | Download | only in ports
      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 
      8 #include "SkFontMgr.h"
      9 #include "SkFontMgr_directory.h"
     10 
     11 #ifndef SK_FONT_FILE_PREFIX
     12 #    define SK_FONT_FILE_PREFIX "/usr/share/fonts/"
     13 #endif
     14 
     15 sk_sp<SkFontMgr> SkFontMgr::Factory() {
     16     return SkFontMgr_New_Custom_Directory(SK_FONT_FILE_PREFIX);
     17 }
     18