vmtx.h 619 B

123456789101112131415161718192021222324252627
  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_VMTX_H_
  5. #define OTS_VMTX_H_
  6. #include "metrics.h"
  7. #include "vhea.h"
  8. #include "ots.h"
  9. namespace ots {
  10. struct OpenTypeVMTX : public OpenTypeMetricsTable {
  11. public:
  12. explicit OpenTypeVMTX(Font *font, uint32_t tag)
  13. : OpenTypeMetricsTable(font, tag, tag, OTS_TAG_VHEA) { }
  14. bool Parse(const uint8_t *data, size_t length);
  15. bool Serialize(OTSStream *out);
  16. bool ShouldSerialize();
  17. };
  18. } // namespace ots
  19. #endif // OTS_VMTX_H_