vhea.h 588 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2011-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. #ifndef OTS_VHEA_H_
  5. #define OTS_VHEA_H_
  6. #include "metrics.h"
  7. #include "ots.h"
  8. namespace ots {
  9. class OpenTypeVHEA : public OpenTypeMetricsHeader {
  10. public:
  11. explicit OpenTypeVHEA(Font *font, uint32_t tag)
  12. : OpenTypeMetricsHeader(font, tag, tag) { }
  13. bool Parse(const uint8_t *data, size_t length);
  14. bool Serialize(OTSStream *out);
  15. bool ShouldSerialize();
  16. };
  17. } // namespace ots
  18. #endif // OTS_VHEA_H_