1 // Copyright 2018 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3 #ifndef SkPDFSubsetFont_DEFINED
4 #define SkPDFSubsetFont_DEFINED
5 
6 #include "SkData.h"
7 #include "SkPDFGlyphUse.h"
8 
9 #ifdef SK_PDF_USE_SFNTLY
10 #define SK_PDF_SUBSET_SUPPORTED
11 
12 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData,
13                               const SkPDFGlyphUse& glyphUsage,
14                               const char* fontName,
15                               int ttcIndex);
16 #endif
17 
18 #endif  // SkPDFSubsetFont_DEFINED
19