#include "components/paint_preview/common/subset_font.h"
#include <hb.h>
#include <hb-subset.h>
#include <hb-cplusplus.hh>
#include <memory>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/numerics/safe_conversions.h"
#include "components/crash/core/common/crash_key.h"
#include "skia/ext/font_utils.h"
#include "third_party/skia/include/core/SkFontMgr.h"
#include "third_party/skia/include/core/SkStream.h"
#include "third_party/skia/include/core/SkTypeface.h"
namespace paint_preview {
namespace {
sk_sp<SkData> StreamToData(std::unique_ptr<SkStreamAsset> stream) { … }
hb::unique_ptr<hb_blob_t> MakeBlob(sk_sp<SkData> data) { … }
void AddGlyphs(hb_set_t* glyph_id_set, uint16_t glyph_id) { … }
}
sk_sp<SkData> SubsetFont(SkTypeface* typeface, const GlyphUsage& usage) { … }
}