• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 Google LLC.
2 #include "modules/skparagraph/include/FontCollection.h"
3 #include "modules/skparagraph/include/TypefaceFontProvider.h"
4 
5 namespace skia {
6 namespace textlayout {
7 class TestFontCollection : public FontCollection {
8 public:
9     TestFontCollection(const std::string& resourceDir);
10     ~TestFontCollection() = default;
11 
fontsFound()12     size_t fontsFound() const { return fFontsFound; }
13 
14 private:
15     std::string fResourceDir;
16     size_t fFontsFound;
17     sk_sp<TypefaceFontProvider> fFontProvider;
18     std::string fDirs;
19 };
20 }  // namespace textlayout
21 }  // namespace skia
22