cvt.h 582 B

12345678910111213141516171819202122232425262728
  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. #ifndef OTS_CVT_H_
  5. #define OTS_CVT_H_
  6. #include "ots.h"
  7. namespace ots {
  8. class OpenTypeCVT : public Table {
  9. public:
  10. explicit OpenTypeCVT(Font *font, uint32_t tag)
  11. : Table(font, tag, tag) { }
  12. bool Parse(const uint8_t *data, size_t length);
  13. bool Serialize(OTSStream *out);
  14. bool ShouldSerialize();
  15. private:
  16. const uint8_t *data;
  17. uint32_t length;
  18. };
  19. } // namespace ots
  20. #endif // OTS_CVT_H_