sile.h 775 B

123456789101112131415161718192021222324252627282930313233343536
  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_SILE_H_
  5. #define OTS_SILE_H_
  6. #include "ots.h"
  7. #include "graphite.h"
  8. #include <vector>
  9. namespace ots {
  10. class OpenTypeSILE : public Table {
  11. public:
  12. explicit OpenTypeSILE(Font* font, uint32_t tag)
  13. : Table(font, tag, tag) { }
  14. bool Parse(const uint8_t* data, size_t length);
  15. bool Serialize(OTSStream* out);
  16. private:
  17. uint32_t version;
  18. uint32_t checksum;
  19. uint32_t createTime[2];
  20. uint32_t modifyTime[2];
  21. uint16_t fontNameLength;
  22. std::vector<uint16_t> fontName;
  23. uint16_t fontFileLength;
  24. std::vector<uint16_t> baseFile;
  25. };
  26. } // namespace ots
  27. #endif // OTS_SILE_H_