#include "testing/font_renamer.h"
#include <string>
#include "testing/test_fonts.h"
namespace {
FPDF_SYSFONTINFO* GetImpl(FPDF_SYSFONTINFO* info) { … }
void ReleaseImpl(FPDF_SYSFONTINFO* info) { … }
void EnumFontsImpl(FPDF_SYSFONTINFO* info, void* mapper) { … }
void* MapFontImpl(FPDF_SYSFONTINFO* info,
int weight,
FPDF_BOOL italic,
int charset,
int pitch_family,
const char* face,
FPDF_BOOL* exact) { … }
void* GetFontImpl(FPDF_SYSFONTINFO* info, const char* face) { … }
unsigned long GetFontDataImpl(FPDF_SYSFONTINFO* info,
void* font,
unsigned int table,
unsigned char* buffer,
unsigned long buf_size) { … }
unsigned long GetFaceNameImpl(FPDF_SYSFONTINFO* info,
void* font,
char* buffer,
unsigned long buf_size) { … }
int GetFontCharsetImpl(FPDF_SYSFONTINFO* info, void* font) { … }
void DeleteFontImpl(FPDF_SYSFONTINFO* info, void* font) { … }
}
FontRenamer::FontRenamer() : … { … }
FontRenamer::~FontRenamer() { … }