//FontDef - [2020-06-22 11:41:46]
#ifndef _FONTDEF_H_
#define _FONTDEF_H_

enum EFontAlign {
  EFontAlign_0,
  EFontAlign_1,
  EFontAlign_2,
  EFontAlign_3,
  EFontAlign_4,
  EFontAlign_5,
  EFontAlign_6,
  EFontAlign_7
};

struct TLetter {
  short field_0[10];  //must be short
  int field_14;
};

struct TKernPair {
  int field_0;
};

//size = 0x58
struct TGlyph {
  TLetter field_0;
  wchar_t field_18[32];

};

struct TextDimensions {
  float field_0;
  float field_4;
};

//未知结构体  从001FE75A得出该结构体就是CFTTCharData2D
//struct Useby_UseBy_TFTTString_field_20 {
// float field_0;
// int field_4;
// bool field_8;
// bool field_9;
// bool field_A;
// bool field_B;
// float field_C;
// float field_10;
// float field_14;
// float field_18;
// float field_1C;
// float field_20;
// float field_24;
// ushort field_28;
// ushort field_2A;
//};

class CFTTCharData2D {
public:
  float field_0;
  float field_4;
  wchar_t field_8;
  bool field_A;
  bool field_B;
  float field_C;
  float field_10;
  float field_14;
  float field_18;
  float field_1C;
  float field_20;
  float field_24;
  short field_28;
  ushort field_2A;
  int field_2C;
};

struct UseBy_TFTTString_field_20 {
  float field_0;
  float field_4;
  CFTTCharData2D* field_8;
  char field_C;
};

class CFTTFont2D;

struct Font_Unknown {
  CFTTFont2D* field_0;
  ushort field_4;
  ushort field_6;

  int field_8;  //-1
  int field_C;
  float field_10;
  float field_14;
  int field_18;
  int field_1C;
};

//???maybe size = 0xC030 pTFTTString_5A9818
struct TFTTString {
  //CFTTFont2D* field_0;
  //ushort field_4;
  //ushort fiel    d_6;
  //int field_8; //-1
  //int field_C;
  //float field_10;
  //float field_14;
  //float field_18; //maybe float
  //int field_1C;
  Font_Unknown field_0;
  UseBy_TFTTString_field_20 field_20[3072];  //依据001FE4BC循环了3072个元素
  int field_C020;
  int field_C024;
  int field_C028;
  int field_C02C;
};

enum EFontWrapType {
  EFontWrapType_0,
  EFontWrapType_1,
  EFontWrapType_2,
  EFontWrapType_3,
  EFontWrapType_4,
  EFontWrapType_5,
};



#endif  //_FONTDEF_H_