• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 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_FONT_RENAMER_H_
6 #define TESTING_FONT_RENAMER_H_
7 
8 #include "core/fxcrt/unowned_ptr.h"
9 #include "public/fpdf_sysfontinfo.h"
10 
11 class FontRenamer final : public FPDF_SYSFONTINFO {
12  public:
13   FontRenamer();
14   ~FontRenamer();
15 
impl()16   FPDF_SYSFONTINFO* impl() { return impl_; }
17 
18  private:
19   UnownedPtr<FPDF_SYSFONTINFO> impl_;
20 };
21 
22 #endif  // TESTING_FONT_RENAMER_H_
23