tor-browser

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

loca.h (561B)


      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_LOCA_H_
      6 #define OTS_LOCA_H_
      7 
      8 #include <vector>
      9 
     10 #include "ots.h"
     11 
     12 namespace ots {
     13 
     14 class OpenTypeLOCA : public Table {
     15 public:
     16  explicit OpenTypeLOCA(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 
     22  std::vector<uint32_t> offsets;
     23 };
     24 
     25 }  // namespace ots
     26 
     27 #endif  // OTS_LOCA_H_