radio/lib/fontParser/tables/hmtx.h
2018-08-05 00:48:17 +03:00

30 lines
551 B
C++

#ifndef HMTX_H
#define HMTX_H
#include "table.h"
#include <vector>
class Hmtx : public Table
{
public:
Hmtx(const std::string& p_tag, uint32_t p_checkSum, uint32_t p_offset, uint32_t p_length);
~Hmtx();
uint16_t numOfLongHorMetrics;
struct HMetric {
HMetric();
uint16_t advanceWidth;
int16_t leftSideBearing;
};
void read(const std::string & path) override;
HMetric getMetric(uint16_t cid) const;
private:
std::vector<HMetric>* longHorMetric;
};
#endif // HMTX_H