variations.h (828B)
1 // Copyright (c) 2018 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_VARIATIONS_H_ 6 #define OTS_VARIATIONS_H_ 7 8 #include <vector> 9 #include "ots.h" 10 11 // Utility functions for OpenType variations common table formats. 12 13 namespace ots { 14 15 bool ParseItemVariationStore(const Font* font, 16 const uint8_t* data, const size_t length, 17 std::vector<uint16_t>* out_region_index_count = NULL); 18 19 bool ParseDeltaSetIndexMap(const Font* font, const uint8_t* data, const size_t length); 20 21 bool ParseVariationData(const Font* font, const uint8_t* data, size_t length, 22 size_t axisCount, size_t sharedTupleCount); 23 24 } // namespace ots 25 26 #endif // OTS_VARIATIONS_H_