loca.h 561 B

123456789101112131415161718192021222324252627
  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_LOCA_H_
  5. #define OTS_LOCA_H_
  6. #include <vector>
  7. #include "ots.h"
  8. namespace ots {
  9. class OpenTypeLOCA : public Table {
  10. public:
  11. explicit OpenTypeLOCA(Font *font, uint32_t tag)
  12. : Table(font, tag, tag) { }
  13. bool Parse(const uint8_t *data, size_t length);
  14. bool Serialize(OTSStream *out);
  15. std::vector<uint32_t> offsets;
  16. };
  17. } // namespace ots
  18. #endif // OTS_LOCA_H_