spidey-decomp/FontTools.h
2024-05-29 19:21:59 +02:00

45 lines
806 B
C++

#pragma once
#ifndef FONTTOOLS_H
#define FONTTOOLS_H
#include "export.h"
class Font
{
public:
EXPORT int GetCharMap(void);
EXPORT void SetCharMap(int);
EXPORT int isEscapeChar(char);
EXPORT char getCharIndex(char);
EXPORT int height(char*);
unsigned char pad[0x21];
unsigned char field_21;
unsigned char padAfter21[0x38-0x21-1];
char field_38[1]; //name don't know how big
unsigned char padAfter38[0x58-0x38-1];
int field_58;
unsigned char padAfter58[0x5F-0x58-4];
unsigned char field_5F[256];
};
class FontManager
{
public:
EXPORT static void ResetCharMaps(void);
EXPORT static char* GetFontName(Font*);
EXPORT static void AllShadowOff(void);
EXPORT static void AllShadowOn(void);
EXPORT static void UnloadFont(Font*);
};
void validate_Font(void);
#endif