aboutsummaryrefslogtreecommitdiff
path: root/testing/test_fonts.h
blob: 4e2a82260b56565ebc6529185ec47f383d009deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2021 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef TESTING_TEST_FONTS_H_
#define TESTING_TEST_FONTS_H_

#include <memory>
#include <string>

class TestFonts {
 public:
  TestFonts();
  ~TestFonts();

  const char** font_paths() const { return font_paths_.get(); }

  void InstallFontMapper();

  static std::string RenameFont(const char* face);

 private:
  std::string font_path_;
  std::unique_ptr<const char*[]> font_paths_;
};

#endif  // TESTING_TEST_FONTS_H_