1 // Copyright (c) 2009-2017 The OTS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef OTS_HHEA_H_ 6 #define OTS_HHEA_H_ 7 8 #include "metrics.h" 9 #include "ots.h" 10 11 namespace ots { 12 13 class OpenTypeHHEA : public OpenTypeMetricsHeader { 14 public: OpenTypeHHEA(Font * font,uint32_t tag)15 explicit OpenTypeHHEA(Font *font, uint32_t tag) 16 : OpenTypeMetricsHeader(font, tag, tag) { } 17 18 bool Parse(const uint8_t *data, size_t length); 19 bool Serialize(OTSStream *out); 20 }; 21 22 } // namespace ots 23 24 #endif // OTS_HHEA_H_ 25