blob: ca379ab31dc81e78b412f65a41a74c814930de99 [file] [log] [blame]
// Copyright 2019 Google LLC.
#include "modules/skparagraph/include/FontCollection.h"
#include "modules/skparagraph/include/TypefaceFontProvider.h"
namespace skia {
namespace textlayout {
class TestFontCollection : public FontCollection {
public:
TestFontCollection(const std::string& resourceDir);
~TestFontCollection() = default;
size_t fontsFound() const { return fFontsFound; }
private:
std::string fResourceDir;
size_t fFontsFound;
sk_sp<TypefaceFontProvider> fFontProvider;
std::string fDirs;
};
} // namespace textlayout
} // namespace skia