Font system refactor, use pre-rendered fonts

This commit is contained in:
elasota
2021-03-27 02:08:03 -04:00
parent c87f238563
commit 50f420d2b1
63 changed files with 976 additions and 1294 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include "PLBigEndian.h"
namespace PortabilityLayer
{
struct RenderedFontCatalogHeader
{
static const int kVersion = 1;
BEUInt32_t m_version;
BEUInt32_t m_pathsOffset;
BEUInt16_t m_numPaths;
BEUInt16_t m_numRFonts;
};
struct RenderedFontCatalogPathEntry
{
BEUInt16_t m_pathOffset;
BEUInt16_t m_pathSize;
};
struct RenderedFontCatalogRFontEntry
{
uint8_t m_pathIndex;
uint8_t m_hacks;
uint8_t m_fontSize;
uint8_t m_isAA;
};
}