ltsh.h (614B)
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 5 #ifndef OTS_LTSH_H_ 6 #define OTS_LTSH_H_ 7 8 #include <vector> 9 10 #include "ots.h" 11 12 namespace ots { 13 14 class OpenTypeLTSH : public Table { 15 public: 16 explicit OpenTypeLTSH(Font *font, uint32_t tag) 17 : Table(font, tag, tag) { } 18 19 bool Parse(const uint8_t *data, size_t length); 20 bool Serialize(OTSStream *out); 21 bool ShouldSerialize(); 22 23 private: 24 uint16_t version; 25 std::vector<uint8_t> ypels; 26 }; 27 28 } // namespace ots 29 30 #endif // OTS_LTSH_H_