Bug 1921551 - React to sync sign in flow correctly r=android-reviewers,matt-tighe
[gecko.git] / gfx / ots / src / prep.h
blob4d3eda2cd2f9c2d45bf45ab0269653e48f366544
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.
5 #ifndef OTS_PREP_H_
6 #define OTS_PREP_H_
8 #include "ots.h"
10 namespace ots {
12 class OpenTypePREP : public Table {
13 public:
14 explicit OpenTypePREP(Font *font, uint32_t tag)
15 : Table(font, tag, tag) { }
17 bool Parse(const uint8_t *data, size_t length);
18 bool Serialize(OTSStream *out);
19 bool ShouldSerialize();
21 private:
22 const uint8_t *m_data;
23 uint32_t m_length;
26 } // namespace ots
28 #endif // OTS_PREP_H_