xref: /aosp_15_r20/external/pdfium/testing/test_fonts.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2021 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef TESTING_TEST_FONTS_H_
6 #define TESTING_TEST_FONTS_H_
7 
8 #include <memory>
9 #include <string>
10 
11 class TestFonts {
12  public:
13   TestFonts();
14   ~TestFonts();
15 
font_paths()16   const char** font_paths() const { return font_paths_.get(); }
17 
18   void InstallFontMapper();
19 
20   static std::string RenameFont(const char* face);
21 
22  private:
23   std::string font_path_;
24   std::unique_ptr<const char*[]> font_paths_;
25 };
26 
27 #endif  // TESTING_TEST_FONTS_H_
28