#include "src/pdf/SkPDFSubsetFont.h"
#if defined(SK_PDF_USE_HARFBUZZ_SUBSET)
#include "include/core/SkStream.h"
#include "include/core/SkTypeface.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTemplates.h"
#include "include/private/base/SkTo.h"
#include "src/pdf/SkPDFGlyphUse.h"
#include "hb.h"
#include "hb-subset.h"
#include <cstddef>
#include <memory>
#include <utility>
namespace {
HBBlob;
HBFace;
HBSubsetInput;
HBSet;
HBBlob stream_to_blob(std::unique_ptr<SkStreamAsset> asset) { … }
sk_sp<SkData> to_data(HBBlob blob) { … }
sk_sp<SkData> extract_cff_data(const hb_face_t* face) { … }
HBFace make_subset(hb_subset_input_t* input, hb_face_t* face, bool retainZeroGlyph) { … }
sk_sp<SkData> subset_harfbuzz(const SkTypeface& typeface, const SkPDFGlyphUse& glyphUsage) { … }
}
sk_sp<SkData> SkPDFSubsetFont(const SkTypeface& typeface, const SkPDFGlyphUse& glyphUsage) { … }
#else
sk_sp<SkData> SkPDFSubsetFont(const SkTypeface&, const SkPDFGlyphUse&) {
return nullptr;
}
#endif