This commit is contained in:
Jack Andersen 2016-03-17 12:20:06 -10:00
commit 7c7140cffd
3 changed files with 10 additions and 9 deletions

View File

@ -18,7 +18,7 @@ CRasterFont::CRasterFont(urde::CInputStream& in, urde::IObjectStore& store)
x8c_baseline = x8_monoHeight;
if (version >= 2)
x90_ = in.readUint32Big();
x90_lineMargin = in.readUint32Big();
bool tmp1 = in.readBool();
bool tmp2 = in.readBool();

View File

@ -112,8 +112,7 @@ class CRasterFont
TToken<CTexture> x80_texture;
bool x88_ = false;
s32 x8c_baseline;
s32 x90_ = 0;
char* fontName;
s32 x90_lineMargin = 0;
const CGlyph* InternalGetGlyph(wchar_t chr) const
{
@ -128,11 +127,13 @@ class CRasterFont
public:
CRasterFont(CInputStream& in, IObjectStore& store);
s32 GetMonoWidth() { return x4_monoWidth; }
s32 GetMonoHeight() { return x8_monoHeight; }
s32 GetMode() { return x2c_mode; }
s32 sub_802FFF5C() { return x90_; }
s32 GetBaseline() { return x8c_baseline; }
s32 GetMonoWidth() const { return x4_monoWidth; }
s32 GetMonoHeight() const { return x8_monoHeight; }
s32 GetMode() const { return x2c_mode; }
s32 GetLineMargin() const { return x90_lineMargin; }
s32 GetCarriageAdvance() const { return GetLineMargin() + GetMonoHeight(); }
s32 GetBaseline() const { return x8c_baseline; }
static s32 KernLookup(const std::vector<CKernPair>& kernTable, s32 kernStart, s32 chr)
{
auto iter = kernTable.cbegin() + kernStart;

2
hecl

@ -1 +1 @@
Subproject commit 64ff101b73f5c639ab592adbcd54e9b20064eaf3
Subproject commit e9b881d42b42d0efa0cde85cfc0e029777df18a7