Fix results of sceFontGetFontInfo() for user fonts.

This commit is contained in:
Unknown W. Brackets 2014-03-01 01:30:25 -08:00
parent 131cbc073c
commit 0e39b6fe36

View File

@ -218,6 +218,7 @@ public:
private:
void Init(const u8 *data, size_t dataSize) {
valid_ = pgf_.ReadPtr(data, dataSize);
memset(&style_, 0, sizeof(style_));
style_.fontH = (float)pgf_.header.hSize / 64.0f;
style_.fontV = (float)pgf_.header.vSize / 64.0f;
style_.fontHRes = (float)pgf_.header.hResolution / 64.0f;