tor-browser

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

fpgm.h (587B)


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