mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-30 10:21:46 +08:00
Replace a number of UNSAFE_TODO() with a single one at the API boundary. Change-Id: Ica433bf356d98ab0bb629d4bfe7856e1a9786ff2 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/151451 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
31 lines
674 B
C++
31 lines
674 B
C++
// 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 <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "core/fxcrt/span.h"
|
|
|
|
class TestFonts {
|
|
public:
|
|
TestFonts();
|
|
~TestFonts();
|
|
|
|
const char** font_paths() { return font_paths_.data(); }
|
|
std::optional<pdfium::span<const char* const>> FontPathsSpan() const;
|
|
void InstallFontMapper();
|
|
|
|
static std::string RenameFont(const char* face);
|
|
|
|
private:
|
|
std::string font_path_;
|
|
std::vector<const char*> font_paths_;
|
|
};
|
|
|
|
#endif // TESTING_TEST_FONTS_H_
|