tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

sile.h (775B)


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