aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontMgr_custom_embedded_factory.cpp
blob: 6ea6a2d2af22cbdeaa51a6de58e8d70d00997c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * 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 "SkFontMgr.h"

struct SkEmbeddedResource { const uint8_t* data; size_t size; };
struct SkEmbeddedResourceHeader { const SkEmbeddedResource* entries; int count; };
SkFontMgr* SkFontMgr_New_Custom_Embedded(const SkEmbeddedResourceHeader* header);

extern "C" const SkEmbeddedResourceHeader SK_EMBEDDED_FONTS;
SkFontMgr* SkFontMgr::Factory() {
    return SkFontMgr_New_Custom_Embedded(&SK_EMBEDDED_FONTS);
}