Font Asset

From COD Engine Research
Revision as of 05:16, 30 December 2013 by CraigChrist8239 (talk | contribs) (Created page with "__NOTOC__ Category:Assets Category:CoD4 Category:MW2 Category:MW3 Category:Ghosts Category:WaW Category:BO1 Category:BO2 Font assets control w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Font assets control what else; the fonts! Every CoD game so far has had a font asset type, and it has changed very little.

Infinity Ward Games & World at War & Black Ops 1

struct glyphs_s
{
  unsigned short character;
  unsigned char padLeft;
  unsigned char padTop;
  unsigned char padRight;
  unsigned char width;
  unsigned char height;
  unsigned char const0;
  float uvLeft;
  float uvTop;
  float uvRight;
  float uvBottom;
};

struct Font_s
{
  char * name;
  int pixelHeight;
  int glyphCount;
  Material * material;
  Material * glowMaterial;
  glyphs_s * glyphs;
};

Black Ops 2

Black Ops 2 is proving to be the only game that changes the font structure so far.

struct Font_s
{
  char * name;
  int pixelHeight;
  int unknown2;
  int glyphCount;
  int unknownCount1;
  Material * material;
  Material * glowMaterial;
  glyphs_s * glyphs;
  char * unknownData;		//Size = unknownCount1 << 3
};