blob: b812c52ff5b906ff8cfbd6e0cd75ed82c95c2579 [file] [log] [blame]
Hal Canary42d6c592018-11-15 14:01:49 -05001// 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
Mike Kleinc0bd9f92019-04-23 12:05:21 -05006#include "include/core/SkData.h"
7#include "include/docs/SkPDFDocument.h"
8#include "src/pdf/SkPDFGlyphUse.h"
Hal Canary42d6c592018-11-15 14:01:49 -05009
Hal Canary42d6c592018-11-15 14:01:49 -050010sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData,
11 const SkPDFGlyphUse& glyphUsage,
Hal Canary25dd2c92019-03-22 12:41:23 -040012 SkPDF::Metadata::Subsetter subsetter,
Hal Canary42d6c592018-11-15 14:01:49 -050013 const char* fontName,
14 int ttcIndex);
Hal Canary42d6c592018-11-15 14:01:49 -050015
16#endif // SkPDFSubsetFont_DEFINED